<?php
//建立一個(gè)暫存檔案
$lsfile = tmpfile();
//向裡面寫(xiě)入資料
$lsshuju = fwrite($lsfile, '111這裡是寫(xiě)入臨時(shí)檔案的資料');
//輸出寫(xiě)入情況
echo '向臨時(shí)檔案中寫(xiě)入了' . $lsshuju . '個(gè)字元<br>' ;
//輸出暫存檔案的內(nèi)容
$shuchu = file_get_contents($lsfile);
echo $shuchu;
//關(guān)閉暫存檔案
fclose($ lsfile);
?>
讀取內(nèi)容報(bào)錯(cuò),請(qǐng)問(wèn)如何讀取內(nèi)容正確?
報(bào)什麼錯(cuò)的