tmpfile() 函數(shù)以讀寫(w+)模式建立一個(gè)具有唯一文件名的臨時(shí)文件。 文件會(huì)在關(guān)閉后(用 fclose())自動(dòng)被刪除,或當(dāng)腳本結(jié)束后。 語(yǔ)法 tmpfile() 提示和注釋 提示:參見tempnam()。 例子 <?php $temp = tmpfile(); fwrite($temp, "Testing, testing.");//倒回文件的開頭rewind($temp);//從文件中讀取 1kecho fread($temp,1024);//刪除文件fclose($temp); ?> 輸出: Testing,...
m.jb51.net/w3school/php/func_filesys... 2025-5-14