View previous topic :: View next topic |
Author |
Message |
RTAdams89 -
Joined: 06 Nov 2005 Posts: 102
|
Posted: Fri Dec 01, 2006 2:42 am Post subject: Using PHP to ping a bunch of html pages |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Dec 01, 2006 8:41 am Post subject: |
|
|
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 |
|
|
|