note 64849 deleted from function.tempnam by bjori
| From: | bjori@php.net | Date: | Fri, 21 Apr 2006 21:45:40 +0000 |
| Subject: | note 64849 deleted from function.tempnam by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108954@lists.php.net to get a copy of this message | ||
Note Submitter: www.ba.uv.ro
Reason: bad code
----
WRONG : 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.
CORECT : Creates a file with a unique filename in the specified directory. If the directory does not
exist or does not have 777 permision, tempnam() may generate a file in the system's temporary
directory, and return the name of that.