Hi all
I have encountered something rather peculiar. I am using the following code to create unique directories each time a script is run (the parent directory "user/home/" already exists.
$curdate = date("dmyhis");
$dirName = "user/home/docs".$curdate;
mkdir($dirName, 0777);
The first time I runt the script (when the parent directory is empty), every thing is fine...no error messages.
The next time I run the script (when the parent directory contains a sub-directory) the second time I get the following message: "Failed to mkdir. File exists"
Eventhough an error was produced, the directory was created, and all of the functions to create and manipulate files in that directory work!
So if the directory is in fact being created, when is the error message generated.
Any ideas?
Thanks
Dave