Dejo el codigo:
Código PHP:
else if(isset($_SESSION['regsuccess'])){
/* Registration was successful */
if($_SESSION['regsuccess']){
echo "<p>Registered!</p>";
echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, your information has been added to the database, "
."you may now <a href=\"http:xxxxxx al azar xxxxxx\">log in</a>.</p>";
mkdir("../user/".$_SESSION['reguname'], 0700);
$_SESSION['reguname'] = tempnam("../user/", "");
$file=$_SESSION['reguname'].(../user/".$_SESSION['reguname']"/index.php)";
Nos Vemos!
Edit: Lo intente con fopen y tambien con touch.