I have cod that does the following:
$newDir ="/home/dir/members";
echo "";
if (!file_exists("/home/dir/members/$username/$username.php")) {
mkdir("$newDir/$username", 0775);
mkdir("$newDir/$username/pictures", 0775);
mkdir("$newDir/$username/itagz", 0775);
}
$uploadPath = "$newDir/$username/pictures"; // path where files are uploaded
The problem now is the members directory has 32,000 directories and I get the following error ---
Warning: MkDir failed (Too many links) in /home/dir/fampage/MyPage2.php on line 474
Is there a way that I can increase the links limit of what can be read by php? Or what can I do to fix this problem?
I should have hashed the directories 2 years ago when I developed the site but, now the client has no money to make this modification. So I am wondering what the quick fix might be.
Ray