note 104628 added to function.tmpfile
| From: | LinnikSergey at osu1 dot php dot net | Date: | Mon, 27 Jun 2011 07:23:20 +0000 |
| Subject: | note 104628 added to function.tmpfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180977@lists.php.net to get a copy of this message | ||
If you wand to get the filename of handle, you must use this code:
function getFileNameOfFileResource($resource) {
$meta = stream_get_meta_data($resource);
return $meta['uri'];
}
$tmpFileHandle = tmpfile();
echo getFileNameOfFileResource($tmpFileHandle), "\n";
----
Server IP: 69.147.83.197
Probable Submitter: 195.218.221.180
----
Manual Page -- http://www.php.net/manual/en/function.tmpfile.php
Edit -- https://master.php.net/note/edit/104628
Del: integrated -- https://master.php.net/note/delete/104628/integrated
Del: useless -- https://master.php.net/note/delete/104628/useless
Del: bad code -- https://master.php.net/note/delete/104628/bad+code
Del: spam -- https://master.php.net/note/delete/104628/spam
Del: non-english -- https://master.php.net/note/delete/104628/non-english
Del: in docs -- https://master.php.net/note/delete/104628/in+docs
Del: other reasons-- https://master.php.net/note/delete/104628
Reject -- https://master.php.net/note/reject/104628
Search -- https://master.php.net/manage/user-notes.php