I found this in a cgi script and it would really come in handy for my website. Thing is, i hate cgi, and was wondering if anyone recognises anything or if anyone can "translate" it into php? here it is - hope it pastes ok :-)
Create directory
mkdir ("$config{'root_dir'}/$in{'username'}", 0755) || &error_html("Could not create user directory: $!");
# Create default html
open (INDEX,">$config{'root_dir'}/$in{'username'}/index.html") || &error_html("Could not create default user index.html: $!");
print INDEX qq~
<head>
<title>$in{'username'}\'s homepage</title>
</head>
<body bgcolor="#FFFFFF">
<font face="Arial,Helvetica">
<big><big>$in{'username'}\'s homepage</big></big><p>
Sorry, my homepage is under construction.<br>
Please come back at a later time.
</font>
</body>
~;
close (INDEX);
}