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); ?> -- 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 PROTECTED]