![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
<?
$filename="1.txt";
if(!($myfile=fopen($filename,"w")))
{
print("Error: ");
print("$filename could not be created\n");
exit;
}
fputs($myfile,"save this line for later\n");
fputs($myfile,"save this line too\n");
fclose($myfile);
if(!($wj=fopen($filename,"r")))
{
print("Error:");
print("$filename could not be read\n");
exit;
}
while(!feof($wj))
{
$myline=fgets($wj);
print("$myline
\n");
}
fclose($wj);
?>
错误提示是:Warning: fopen("1.txt", "w") - Permission denied in c:\inetpub\wwwroot\test\1.php on line 3
提问者:kevindai 06-01 23:11
答复

