is_writable($file)
$s1File = "javascript.txt"; echo is_writable($s1File) . "br />"; echo is_writable("javascript.txt");