note 49721 added to function.tmpfile

From: Date: Sun, 06 Feb 2005 20:33:38 +0000
Subject: note 49721 added to function.tmpfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-84594@lists.php.net to get a copy of this message
tmpfile() does not return the name of the file it created. To get access to the file, use something like this: $tempfn = tempnam("",""); $temp = fopen($tempfn, "w"); fwrite($temp, $data); fclose($temp); //your functions here, ie: $size=getimagesize($tempfn); unlink($tempfn); ---- Manual Page -- http://www.php.net/manual/en/function.tmpfile.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49721 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49721&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49721&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49721&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49721&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49721&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49721&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84594) next »