php mkdir windows relative path
- by Vish
Hi,
Want to create a directory on windows from a PHP script.
My script is in www/Test directory of Apache and want to create a folder(fold1) inside www/downloads directory.
Inside the script, using,
$dirName = "../downloads/fold1";
mkdir("{$dirName}");
If we use the full path of dirName like C:\Apache\www\downloads\fold1, it works fine.
But want to use relative path since this code will be sent to the client.
Please let me know.
Thanks,
Vish.