I want to create a windows directory with a PHP script.
My script is in the www/TestApache directory , and I want to create a folder (fold1) inside the directory www/downloads.
Inside the script, I use:
$dirName = "../downloads/fold1";
mkdir("{$dirName}");
If I use the full path to dirName as C:\Apache\www\downloads\fold1, it works fine.
But I want to use a relative path, as this code will be sent to the client.
source
share