I seen your post about mkdir so this may be what your after
Code:
$filecontent="Code For File To Insert";
mkdir('/home/path/public_html/'.$username, 0777);
if ($fp = fopen("/home/path/public_html/".$username."/index.php", "w")) {
fwrite($fp, $filecontent);
chmod("/home/path/public_html/".$username."/index.php", 0755);
fclose($fp);
}
I could've used that a couple of hours ago! Haha, I was able to figure it out on my own though! Thanks anyways, hopefully that'll alleviate some time for other users who wanted to do what I did; but of course I did mine the hard, "on-my-own" way... heh