Little usefull sourcecode that i found usefull and saved me lots of time.
didn't have to create directories for each user, used mysql and mkdir function, and it was done in a few seconds.
Code:
include("config.php");
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(name) FROM users"));
if($noi[0]>0)
{
$rss = mysql_query("SELECT name FROM users");
while($rs=mysql_fetch_array($rss))
{
$rs0 = ("$rs[0]");
@mkdir("users/".$rs[0]."");
}
}

make sense to do it that way
Comment