is_dir and cache problem ...
| From: | Daniel Urst�ger | Date: | Mon, 24 Dec 2001 02:29:58 +0000 |
| Subject: | is_dir and cache problem ... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78636@lists.php.net to get a copy of this message | ||
Hiya !
I am working on a download script right now,
and I have a question about a part of my code:
do
{
$random_ID = rand(1000000000,9999999999);
$download_dir = "$today $random_ID";
if (!@is_dir($download_dir))
mkdir("$download_dir",0777);
}while(@!is_dir($download_dir));
So, I do this loop till the rand command generates a
ID which isn´t already in use ...
So I have now 2 calls of is_dir onto the same directory
in one loop. What do you think:
Do I need to use clearstatcache() or not ?
thx for any comments !
And Merry XMas !!