Re: Tempnam not working??
| From: | John Holmes | Date: | Sun, 17 Oct 2004 17:52:05 +0000 |
| Subject: | Re: Tempnam not working?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199670@lists.php.net to get a copy of this message | ||
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