note 84849 deleted from function.sys-get-temp-dir by googleguy
| From: | googleguy@php.net | Date: | Sat, 12 Jan 2013 09:28:22 +0000 |
| Subject: | note 84849 deleted from function.sys-get-temp-dir by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192956@lists.php.net to get a copy of this message | ||
Note Submitter: radon8472 at hotmail dot com
----
better use
tempnam(":\n\\/?><","");
To detect path by creating a temporary file.
A random directoryname can exist (the chance is low, but it can be).
Better is to use signs, like :\n\\/?>< which are not valid, so realy NEVER a directory with
this name can exist.