![]() |
|
#1
|
|||
|
|||
How to check URL - SubdirectoriesHi everybody,
I'm looking for a simple script for counting subdirectories. For example: 1. Input page is used to define the domain and the subdirectories starting and end point: "Please enter the domain name: ______" example: www.yxz.com "Please enter the starting point: ______" example: 0000000 "Please enter the end point : ______" example: 9999999 "Start counting" 2. Output page: The script starts at "example: www.xyz.com" and looks if there is a web site running. It uses error 404 to check. Let's say there isn't a web site running, the webserver sends error 404. When no error 404 occurs, the URL "example: www.xyz.com" should be logged in a text file and a counter should be increased by one. After checking all subdirectories from the starting to the end point a summary should be presented the user like: Total subdirectories : 999'999 (endpoint minus starting point) Active found subdirectories: 152'278 and the logfile should be downloadable by a link. Thank you very much for helping me! Sincerely, Ives |
|||
|
#2
|
||||
|
||||
Possible solution: PHP's fsockopen()Hi Leutenegger,
Since I am on 'transit' at the moment, I can't give you more details right now but I can tell you one function you can use to get a web page's status (i.e. 404). Read up on : fsockopen() Let us know how you get along with using it for your script __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| site check | webshocker | Websites Reviewed Forum | 3 | 30-Oct-2003 05:45 |
| Attention Resellers! Check this program out! | Yippee | Web Hosting Advertisements & Offers | 0 | 22-Jul-2003 09:05 |
| Yet another site check | xtremebytes | Websites Reviewed Forum | 3 | 30-Jun-2003 01:39 |
| Tutorial Forums | barry | New Member Introductions | 1 | 27-May-2003 16:10 |
| 1st msg of year - Check it out | jrobbio | Websites Reviewed Forum | 9 | 15-Feb-2003 19:21 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The