Re: Tempnam not working??

From: Date: Sun, 17 Oct 2004 17:10:05 +0000
Subject: Re: Tempnam not working??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199668@lists.php.net to get a copy of this message
----- Original Message ----- From: "Brent Clements" <bclem@imaginative-enterprises.com> 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.

« previous php.general (#199668) next »