Hi there,
My website contains a registration screen where a user enters a unique username, when this is done i wish to create a directory on my server called $username (whatever they choose).
I also wish to create two sub dirs inside this one.
The code i have is:
mkdir($username, 0777);
mkdir ("\$username\slides", 0777);
mkdir ("\$username\smil", 0777);
The first line works fine but the two after give me the error:
Warning: mkdir() failed (No such file or directory) in c:\program files\apache group\apache\htdocs\final\register.php on line 204
Any idea why this maybe or how to achieve what i wish to do?
I am running on windows if this makes any difference.
Thanks for any help offered.
Nick Langridge.