$file = "/path/to/file.txt"; if (is_writable($file)) { echo "The file is writable"; } else { echo "The file is not writable"; }
$file = "/path/to/file.txt"; if (is_writable($file)) { echo "The file is writable"; } else { echo "The file is not writable"; }