This is what I have:
mkdir($username);
$file=fopen($username."/index.htm","w");
fwrite($file,"<html>"."</html>");
fclose($file);
where $username refers to what the user entered for their username. The .php I'm using this code in is merely for a signup process. I'm extremely new to PHP (like, today), so please go easy on me.