note 113340 added to function.tempnam

From: Date: Sun, 29 Sep 2013 14:00:24 +0000
Subject: note 113340 added to function.tempnam
Groups: php.notes 
Request: Send a blank email to php-notes+get-196411@lists.php.net to get a copy of this message
if you don't want to take care of deleting the file yourself, and you don't need a custom prefix, you can use $file_location=stream_get_meta_data(tmpfile())['uri']; file will be created automatically, and deleted automatically on script close (thanks to tmpfile()) i found this useful for CURLOPT_COOKIEFILE (which wants a file location, not a handle) ---- Server IP: 69.147.83.199 Probable Submitter: 90.149.55.47 ---- Manual Page -- http://php.net/manual/en/function.tempnam.php Edit -- https://master.php.net/note/edit/113340 Del: integrated -- https://master.php.net/note/delete/113340/integrated Del: useless -- https://master.php.net/note/delete/113340/useless Del: bad code -- https://master.php.net/note/delete/113340/bad+code Del: spam -- https://master.php.net/note/delete/113340/spam Del: non-english -- https://master.php.net/note/delete/113340/non-english Del: in docs -- https://master.php.net/note/delete/113340/in+docs Del: other reasons-- https://master.php.net/note/delete/113340 Reject -- https://master.php.net/note/reject/113340 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196411) next »