Get files in directory and its subdirectories search for pic_filename in db and delete file if it doesnt exist
$10-30 USD
Ακυρώθηκε
Αναρτήθηκε περίπου 10 χρόνια πριν
$10-30 USD
Πληρωμή κατά την παράδοση
I have a folder with many (over one hundred subdirectories) and those directories have 20 subdirectories
I need a php file created that gets the filename in each directory then checks for the filename in the database and deletes the file if not found:
$sql = mysql_query("SELECT pic_filename FROM phpbb_album WHERE pic_filename='$filename'");
if(mysql_num_rows($sql) == 0)
unlink($directory . $filename);
there is so many folders so it needs to do it in batches
I am new to Freelancer and would love to have the opportunity to support you on this project. I am located in the US and will be available to you via phone, email, and/or Skype. Would you be able to provide me with a zip file of the directory you refer to, so that I could test on my server before deploying on yours? Thanks! Dan