Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

`%s’ is not a valid mode for fopen

Description

There are several modes when opening a file, as passed with the 2nd argument. Yet, there are values and combinaisons of values thare are not possible.

Example

<?php

$fp = fopen($path, "+rw");

?>

Literal Examples

  • ‘+rw’ is not a valid mode for fopen

Alternatives

  • Use a valid open mode.