Let's try to get more information.
What does
$file = 'p:muh';
error_reporting(E_ALL);
ini_set('display_errors', true);
echo 'phpversion: ', phpversion(), "
";
echo 'uname: ', php_uname("s r"), "
"; // name/release of the operating system
echo 'sapi: ', php_sapi(), "
";
echo $file, file_exists($file) ? ' exists' : ' does not exist', "
";
echo $file, is_readable($file) ? ' is readable' : ' is NOT readable', "
";
echo $file, is_writable($file) ? ' is writable' : ' is NOT writable', "
";
$fp = fopen($file, 'a+');
if ( !$fp ) {
echo 'last error: ';
var_dump(error_get_last());
}
else {
echo "ok.
";
}
print?
see also: http://docs.php.net/error_get_last
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…