----- Original Message ----- From: "Brent Clements" <[EMAIL PROTECTED]>

When I run the following

$fname = tempnam('mytmp/', 'PREFIX_');

and then echo $fname, it returns

/tmp/FILENAME rather than mytmp/FILENAME
----------
From the manual:

Creates a file with a unique filename in the specified directory. If the directory does not exist, tempnam() may generate a file in the system's temporary directory, and return the name of that


The chances are that mytmp in the directory the script is runjning in either doesn't exist or is not writable by the process running on the server.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to