開啟檔案的模式有錯誤,改為下列的方式. <?php. $filepath="num.txt";. $file = fopen($filepath,"r");. $idsum=fgets($file);. fclose($file);.
確定! 回上一頁