Hi, thanks for looking at our project! This is actually a set of mini-projects. We need a 2 simple PHP scripts written, and a couple of other ones modified.
- Our server is Linux Apache, running PHP 4.4.9.
- All scripts below should, when run, write a simple success (or error) message to a common [url removed, login to view] file.
Here's what we need:
We need a script that will:
- read a tab-delineated text flatfile database and extract all unique photo URLs from any records containing “F” in column 9, and write these URLs to a temp file.
- Delete any URLs on this temp file that contain the string “autobase”.
- compare the image filenames (i.e., the part after the last slash “/” of any URL) on this list to the contents of a directory on the local server.
- If any of the filenames are NOT found in that directory, the script should use the URL to download the image file and save it into that directory.
We need a script identical to script #1 above, except script #2 should:
- Delete any URLS on its temp file that do NOT contain “autobase”.
- It should not download the images, only create the temp file (consisting of the URLs which contain “autobase”, that are of images that are not in the directory).
MODS TO EXISTING SCRIPTS:
We need a very small mod to a simple script on our site called [url removed, login to view], which writes info from our flatfile database into an xml file. Currently, one section of this script checks for unique image URLs and writes these to the XML. The only change we need is this — the unique image URLs MUST contain “.jpg”. That's it.
We have a script called [url removed, login to view] which reads data from a source text flatfile, maps it to the right format, and writes it to the destination flatfile. The script works great and only needs one little mod. Right now, for every record, it writes “F” in column 9. What we need is this: If the number of image files for a record in the the source file is less than 2, it should write “E”, else write “F”. If you like, I can provide you with an example of a similar script that has this mod already.
We have 4 PHP scripts on our site which run as crons but do not write a simple success (or error) message to a common [url removed, login to view] file. We would like them modified so that they do so. (I have included these in the file [url removed, login to view] to give you an idea). In the case of image downloading or resizing scripts, we would like for the message to include the number of images downloaded or resized.
That's it! Let us know if you have any questions and we look forward to working with you. I will provide all necessary file locations and FTP access when the project begins.