PHP tmpfile()

Jmnote (토론 | 기여)님의 2021년 4월 21일 (수) 15:23 판 (→‎개요)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

PHP tmpfile()
<?php
$temp = tmpfile();
fwrite($temp, "writing to tempfile");
fseek($temp, 0);
echo fread($temp, 1024);
fclose($temp); // this removes the file
<?php
$file = tmpfile();
$path = stream_get_meta_data($file)['uri'];
echo $path;

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}