note 24801 added to function.tempnam

From: Date: Wed, 28 Aug 2002 21:54:51 +0000
Subject: note 24801 added to function.tempnam
Groups: php.notes 
Request: Send a blank email to php-notes+get-35947@lists.php.net to get a copy of this message
Be careful with you forward and back slashes. Innocent looking code like this... $uploaddir = "C:/Program Files/Apache Group/Apache2/htdocs/sasdap/uploads/"; $tempFile = tempnam ($uploaddir, "TMPANAL"); $fp = fopen($tmpfname, "w"); fwrite($fp, $iqdata); //fclose($fp); ... may show something odd when echoing $tempFile"; i.e. /Program Files/Apache Group/Apache2/htdocs/sasdap/uploads/\TMP3D.tmp Must... remember... to... use... backslashes... - Lee P. Reilly -- http://www.php.net/manual/en/function.tempnam.php http://master.php.net/manage/user-notes.php?action=edit+24801 http://master.php.net/manage/user-notes.php?action=delete+24801 http://master.php.net/manage/user-notes.php?action=reject+24801

« previous php.notes (#35947) next »