Using PHP to ping a bunch of html pages

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Fri Dec 01, 2006 2:42 am    Post subject: Using PHP to ping a bunch of html pages Reply with quote

Ping may not be the right term, but what I am trying to do is create a script that when given an input such as
Code:
http://server.com/folder/
will attempt to access every possible 7-character file name in that folder and report if it exists or not. For example, it would scan that above mentioned url and report that "0000000.html" does not exist (returns a 404 error) but 0000001.html does exist. I figure this will require two parts a) creating a list of all possible combinations of letters and numbers and b) trying to access all of those and determine if they return a 404 or not. Any help?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Dec 01, 2006 8:41 am    Post subject: Reply with quote

I think there is a command to get the headers, so you will need to find out how to determine a 200 OK error from a 404 ERROR header.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group