is_writable

(PHP 4 >= 4.0b2)

is_writable -- Tells whether the filename is writable

Popis

bool is_writable (string filename)

Returns true if the filename exists and is writable. The filename argument may be a directory name allowing you to check if a directory is writeable.

Keep in mind that PHP may be accessing the file as the user id that the web server runs as (often 'nobody'). Safe mode limitations are not taken into account.

The results of this function are cached. See clearstatcache() for more details.

Viz takΘ is_readable().