note 104628 deleted from function.tmpfile by danbrown

From: Date: Mon, 27 Jun 2011 14:29:49 +0000
Subject: note 104628 deleted from function.tmpfile by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180989@lists.php.net to get a copy of this message
Note Submitter: Linnik Sergey ---- 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";

« previous php.notes (#180989) next »