note 67260 added to function.tempnam
| From: | GuillaumeParamelle at osu1 dot php dot net | Date: | Tue, 06 Jun 2006 13:46:57 +0000 |
| Subject: | note 67260 added to function.tempnam | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-113358@lists.php.net to get a copy of this message | ||
On a windows server (php 5.1.2), tempnam() may not use the dir parameter, and create the file in
$_ENV['TMP'].
I also had problem because the directory was relative.
Everything was solved using :
tempnam(realpath("../_cache/"), "prefix") ;
----
Server IP: 217.174.203.10
Probable Submitter: 213.41.118.242
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.tempnam.php
Edit -- http://master.php.net/note/edit/67260
Del: integrated -- http://master.php.net/note/delete/67260/integrated
Del: useless -- http://master.php.net/note/delete/67260/useless
Del: bad code -- http://master.php.net/note/delete/67260/bad+code
Del: spam -- http://master.php.net/note/delete/67260/spam
Del: non-english -- http://master.php.net/note/delete/67260/non-english
Del: in docs -- http://master.php.net/note/delete/67260/in+docs
Del: other reasons-- http://master.php.net/note/delete/67260
Reject -- http://master.php.net/note/reject/67260
Search -- http://master.php.net/manage/user-notes.php