Login   Register  
PHP Classes
elePHPant
Icontem

URL TS: Check whether a page with given URL exists

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-10-07 (9 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 1,100 All time: 3,161 This week: 1,343Up
Version License Categories  
url_ts 1.0GNU General Public Lice...HTTP, Validation
Description Author  

This is a simple class that can be used to check whether a page with a given URL exists.

The class establishes a connection to the server of the given URL and sends an HTTP HEAD request.

If successful the class can determine whether it returns the HTTP response code.

The code 200 means the page exists. The code of 404 means the page does not exist. The code 302 means the server is redirecting the request to another location.

Picture of Jacek Wloka
Name: Jacek Wloka <contact>
Classes: 6 packages by
Country: Poland Poland
Age: 27
All time rank: 3546 in Poland Poland
Week rank: 842 Down21 in Poland Poland Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Readmy Example Manner of use
Plain text file url_ts.php Class Class url_ts

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,100All time:3,161
 This week:0This week:1,343Up
User Ratings User Comments (1)  
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:762
 
Excellent
5 years ago (kishore kumar)
70%StarStarStarStar