时间:2021-07-01 10:21:17 帮助过:8人阅读
<html>
<head>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
</head>
<body>
<?php
$filename="/home/wanbo/test/file/test.txt";
if(file_exists($filename))echo "the file is there.";
else echo "there isn't such a file";
$myfile=fopen($filename,"a+");
fwrite($myfile,"hello,world");
while(!feof($myfile))
{
$mychar=fgetc($myfile);
echo $mychar;
}
fclose($myfile);
?>
</body>
</html>
以上就是php程序导致硬盘使用空间飚升的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!