Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロジェクトのサーバーに一時ファイルを作成する方法はありますか? 永久に必要のない写真を保存することになっています。
よろしくお願いいたします。
探していると思いますtmpfile()
tmpfile()
マニュアルページのコード:
<?php $temp = tmpfile(); fwrite($temp, "writing to tempfile"); fseek($temp, 0); echo fread($temp, 1024); fclose($temp); // this removes the file ?>
tempnamまたはtmpfileが必要です- あなたの選択。