I am wanting to know how to make a directoy in php?
This is how I made a file in a directory..
$newfile=(fopen("$basedir/$user/index.php","w"));
fputs($newfile,"<?\n");
fputs($newfile,"\$pagename='$pagename';\n");
fputs($newfile,"\$usertable='$usertable';\n");
fputs($newfile,"include(\"guest.php\");\n");
fputs($newfile,"?>\n");
fclose($newfile);
So If I Installed it in a script it will make a file in a predetermined directory..
but I want to install the file what $user equals to..
example
http://www.mysite.com/username/index.php
http://www.mysite.com/myname/index.php
I am creating a script called create.php and it needs to create a directory of whatever
$user equals at that time.