Re: is_dir and cache problem ...

From: Date: Mon, 24 Dec 2001 03:11:23 +0000
Subject: Re: is_dir and cache problem ...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-78638@lists.php.net to get a copy of this message
Forgot a couple of double quotes and the mode for mkdir. Perfectionist, you see... :-) Bogdan <? global $mytmpdir; // usually "/tmp" -- you set this as you please globally $dd_prefix="$mytmpdir/temp_download_[project name here]"; $i=0; while (is_dir("$dd_prefix$i")) { $i++; } mkdir("$dd_prefix$i",0777); ?>

« previous php.general (#78638) next »