Name

fopen

Synopsis

$fd = fopen($filename, $mode);

Opens the file filename in the mode mode and returns a file descripter associated with the open file. As with the C function fopen, the mode is one of “r”, “r+”, “w”, “w+”, “a”, “a+”. The function returns -1 if the file could not be opened.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.