Brent Clements wrote:
Hi Everybody,

I'm running php 4.3.2

When I run the following

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

and then echo $fname, it returns

/tmp/FILENAME rather than mytmp/FILENAME

I'm running under RHEL 3 U3

Anybody know what's going on?

If 'mytmp' does not exist (relative to your script), then PHP will default to the system directory. Or, if PHP cannot write to 'mytmp', it'll default back to the system temporary directory.


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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



Reply via email to