i have a script that is publishing static content to a file. I have to create the directory for the year, the month, then the day.
Here is the basic code:
if (!is_dir($day))
mkdir($day, 0700);
if (!chdir($day)) return new PEAR_Error("Couldnt change directory to Day(<b>".$day."</b>)");
But for some reason, and only on linux machines, when the day is the same as the month (04/04/2003 or April 4th) it fails when trying to create the dir for the day. so it will get to: /2003/04/ and then go to create /04/ and it fails...
any ideas?
thanks, ryan