Hi everyone,
I have a PHP script residing in:
I:\php\scripts\newdirectory.php
In that, I'd like to be able to create a directory:
I:\php\a_new_directory
But I'm getting the following error when I try and create the directory using:
mkdir("I:\php\a_new_directory");
EDIT: Not sure why, but vBulletin seems to get rid of some of those slashes 😕 it should read:
mkdir("I:\php\a_new_directory");
Warning: mkdir(I:\php\a_new_directory) [function.mkdir]: No such file or directory in
I've tried writing the location tons of different ways, but nothing seems to work 🙁
mkdir() works when I use a relative path to the script, and create a directory within the folder the script is in, but if I try and go anywhere else it brings up this error. Where I can use a relative path, it won't let me use a full path.
I'd really be grateful for any response.
Thanks.
Dave.