The ’mkdir’ function doesn’t function correctly on Windows when the path
contains forward slashes. The part of the path with the forward slashes
doesn’t get created.
mkdir(’c:/a/b/c/d’, 0775, true);
You get the error message:
Warning: mkdir() [function.mkdir]: No such file or directory
Please use backslashes under Windows or use the constant DIRECTORY_SEPARATOR.
mkdir(’c:\a\b\c\d’, 0775, true);
mkdir(’c:’.DIRECTORY_SEPARATOR.’a’.
DIRECTORY_SEPARATOR.’b’.
DIRECTORY_SEPARATOR.’c’.
DIRECTORY_SEPARATOR.’d’, 0775, true);
Just so you know, I did not know the answer to that question, but a google search for:
Error: mkdir() [function.mkdir]: No such file or directory
gets your answer on the first result. Don’t ever doubt the power of google, and please, remember to search around a bit first, the answer is generally closer than you think. Greater than the power of google is the power that comes from being autonomous!
-sD-