Does anyone know how I can check to see if a directory is writeable in PHP?
The function is_writable doesn\'t work for folders.
Edit: It doe
In my case, is_writable returned true, but when tried to write the file - an error was generated. This code helps to check if the $dir exists and is writable:
is_writable
$dir