Ok... When a person registers at my site I want a page to be made in the /user/ directory named after the username they register with.
Anyone know how to do that? I have this one file someone gave me that they said it might help, but i'm not sure what it all means =p.
If you can build around this then that'll be fine, if you prefer to start from scratch then that;ll be fine too.
$myrow=mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `username`='$uname' AND `password`='$password'"));
$newfilename=$myrow["username"];
$newfilename=$newfilename.".php";
$newfilename=ereg_replace(" ","_",$newfilename);
$location=pathinfo($_SERVER["SCRIPT_FILENAME"]);
$location=$location["dirname"];