Hi,..
First off I suppose my question is "how many files is too many to have in the same directory?" I currently have a folder where mems can upload pics and it is growing to have over 10,000 images in the same folder. (I know,..oops) 🙂
The paths are stored in a mysql db along with other info so seperating them shouldn't be too much of a problem. I would like to create folders named after the user_name column.
So if I have a table that stores user_name, image_path, image_caption and would like to create subfolders by user_name, how would I go about this?
$getInfo = "SELECT user_name, image_path, image_caption FROM picTable GROUP BY user_name";
$rs = mysql_query($getInfo, $conn) or die(mysql_error());
while($row = mysql_fetch_assoc($rs)){
$user_name= $row['user_name'];
$image_path= $row['image_path'];
$image_caption= $row['image_caption'];
....and then? I'm sure theres a "move" command in there somewhere,...
Thank you very much. I'm pretty nervous about this one so I'm hoping to hear from somebody with experience. 🙂