I know you're super busy, but...
When you have time, could you help me troubleshoot a PHP script? I found what I was looking for (what I talked to you about before, if you remember) but I can't seem to get it working properly. I don't know if there's something wrong with the files or if I'm doing something wrong.
Comments
Sure, can you email me the files: BradA1878@mindspring.com
Also, the site you want to be able to read the files from, does it have directory listing? [meaning if you hit the dir in a browser w/o an index.html file doe it show you a list of files?]
----
Yes. It's not up there right now because I've misplaced my password, but that's an easily remedied problem.
I just got you email, I'll take a look now.
----
http://www.bradanderson.org/temp/news/look.php
The pass is: NewsFinderPW
So, you need a script that does basically what this is doing but for a different img URL, right?
This script lops through a bunch of images, it builds the image path by concatenating a number, that is stored int he data dir, to the end of a string. For example, this is one of the image file URLs:
http://images.neopets.com/caption/caption_940.gif
The "http://images.neopets.com/caption/caption_" part is hard coded and the "940" is stored in the "cap.txt" file in the "data" dir. It is not working correctly but if it was I think it would write the number "940" to that file and then the next time you ran the file it would increment that number [941,942,943,...], concatenate it to the URL, and see if there is a result - then append ".gif" to it. If there was a result it would store the new number in that "cap.txt" file.
So, this script only works if the images you are trying to scrape are named with a trailing number that gets incremented. If they are not named like that, this script is worthless.
Will that work for you?
----
Would it be difficult/time consuming to get it working properly?
If you give me a URL to one of the images in the folder you are interested in I may be able to get it to work.
----
http://images.neopets.com/games/clicktoplay/ctp_1046.gif