PHP script for localizing and deleting files from a folder in Linux Apache server.
$30-250 USD
货到付款
Hello,
I need a small script to be written to save precious space in my server disk storage. I currently have more than 40,000 files in my server while I need only about 1500.
My shopping cart software does not delete the images of products that were deleted from my frontend store.
I can export a CSV list of all images URLs/jpg names that are currently in use, so I can determine which images I do not want to be deleted.
All the images are located in the same folder in my server.
I do not want the script to use my MySQL database, so the script should work from a HTML page that will allow me to upload a CSV/text file with all the images URLs to be kept save and the rest of the images found in the folder will be deleted. I also want the software to output how many files it's found and to request confirmation before the delete action.
Thank you!
Each product has by default 4 images in 4 different sizes named, for example: "[login to view URL]", "[login to view URL]", "[login to view URL]" and "[login to view URL]", so the scrip will have to search for any files which their names start with "14220-13369-" to keep them safe from deletion.
项目ID: #2455732
关于项目
授予:
有18名威客正在参与此工作的竞标,均价$107/小时
Hi - We have checked your given description in detail - got the idea about required script - Please check pmb for our comments. :-)
Hi there. I will develop the script which will allow you to import (by browse button) the CSV containing images you need to keep. The script will display the number of images -- other than those in the CSV -- found and 更多
Hi I can help you do this, this task seem interesting to me, as I am working on something similar to this for my own website.