Hi all
I'm creating a comeptition engine
Everytime some decided they want to opt in to receive further emails i want to create a directory that competition.
When there is no directory it works fine (in that it will create the directory. However if the directory exists it still seems to want to create the directory.
here's my code so far
$directory = $this_competition_name;
if(!is_dir($directory))
{
}else{
mkdir("emaillists/$directory", 0773);
}
$fp = fopen("emaillists/$this_competition_name/$todays_date.csv", "a");
fwrite($fp,"$fname,$lname,$email\n");
fclose($fp);
I want to use !is_dir to decide whether to create the directory. The !is_idr dones'nt seem to work
anyone got any ideas whats wrong
Cheer Gary Mailer