`%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

Solutions

  • Use a valid open mode.

See Also