GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Aug-2003, 06:32
Leutenegger Leutenegger is offline
New Member
 
Join Date: Aug 2003
Posts: 1
Leutenegger is an unknown quantity at this point

How to check URL - Subdirectories


Hi 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  
Old 24-Aug-2003, 06:51
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

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
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 19:01.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.