$dir = "users/$sn";
mkdir($dir,0777);
$fp = fopen("users/$sn/pass.php", "w");
fwrite($fp,"$mypass = $pass");
fclose($fp);
Warning: SAFE MODE Restriction in effect. The script whose uid is 2016 is not allowed to access...