note 49721 deleted from function.tmpfile by bjori

From: Date: Wed, 03 May 2006 23:07:12 +0000
Subject: note 49721 deleted from function.tmpfile by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-110471@lists.php.net to get a copy of this message
Note Submitter: onlywhenitscold at doglover dot com ---- 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);

« previous php.notes (#110471) next »