首頁  >  文章  >  後端開發  >  php程式導致硬碟使用空間飚升

php程式導致硬碟使用空間飚升

黄舟
黄舟原創
2016-12-21 10:05:211093瀏覽

這個程式瞬間導致我電腦的cpu和內存飚升,一看硬碟使用空間,也在增加,現在不知所措了,找不到使用的硬碟空間是哪些了?無法恢復到之前的硬碟空間大小,我是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=fchogetc($myfile);
{
    $mychar=fchogetc($myfile); mychar;    

}
fclose($myfile);

?>


🎜🎜 以上是phpP驅動程式使用空間颯的內容,更多相關內容請注意(www.php.cn)! 🎜🎜🎜🎜
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn