Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Daniel Urstöger
thx for your help ! Since I am the only one who works on the whole server, it´s all my stuff :) Yeah, but the increasing of the random_ID is surely a good way .. Will check on that ! thx again ! :)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Bogdan Stancescu
Forgot a couple of double quotes and the mode for mkdir. Perfectionist, you see... :-) Bogdan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PRO

Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Bogdan Stancescu
I do the same with is_file() in several scripts and it works just fine without clearing the cache. Don't know about dirs but I can't see why it may be different - should use the exact same functions internally. On a side note, I'd rather recommend using a loop like This way you have better cont

[PHP] is_dir and cache problem ...

2001-12-23 Thread Daniel Urstöger
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(10,99); $download_dir = "$today $random_ID"; if (!@is_dir($download_dir)) mkdir("$download_dir",0777); }while(@!is_dir($download_dir)); So, I do this loo