hi, i've been writing a liltle php script for 2 days now and i am stuck on a big problem which i can't find a solution for. i hope you guys can help me out, i have been searching all over the web for a solution and tried many things including converting html to xhtml using tidy but didn't work, i've tried caching in php also, now i'm just wondering what else i can try, i'm not a " real " coder because i just code when i really need something... here's the problem. I have downloaded 2,549 PK3 files (Game Maps files) for a total of 5Gb, each one of these PK3 (maps) files contains a /levelshots/ folder in which can be found a levelshot (game level) picture of the map. Example if the PK3 (map) file is named, A.pk3, the levelshot picture will be named, A.jpg, the problem is that some PK3 files have more than 1 pictures inside the PK3 file.. exemple... B.jpg + C.jpg + D.jpg + E.jpg, are in /levelshots/ folder of F.pk3, the PK3 file is a ZIP file, file.zip renamed to file.pk3. Now, from all these 2,549 pk3's, i have extracted, with a single DOS ZIP command, all the pictures inside the /levelshots/ folders in all the pk3 files to create a website Gallery on my website. Now, the script i started 2 days ago will check if a download link is available for each picture i have in my gallery but since some pictures are grouped together in one PK3 file and that my script loop through a gallery folder containing each .jpg files and removes the extension replacing it with .pk3, some links doesnt work.. exemple.. B.jpg becomes B.pk3.. C.jpg becomes C.pk3 etc.. but since B, C, D and E pictures are part of F.pk3, when the script does the http link check for B, C, D and E, the link wont be valid since there's no valid http link named B.pk3, C.pk3, D.pk3 and E.pk3 on the remote server...
This script will help me maintain valid links for 2,549 pk3's and to add new ones each day.. otherwise i will have to check them 1 by 1 and this is just impossible to maintain a gallery with that many pictures manually.
My script works, but it can only check 30 valid links of the 2,549 links, at a time. I really need you guys help on the script to check for the 2,549 valid links in one time. The script currently has 300 very simple lines of code only.
here's a screenshot of a testing directory " vid " which only contain few files and 1 directory.
[IMG]http://img208.imageshack.us/img208/9835/sceen004rj1.th.jpg[/IMG]
Map Validator.