PHP Classes

URL TS: Check whether a page with given URL exists

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 1,111 All time: 3,386 This week: 673Up
Version License Categories
url_ts 1.0GNU General Publi...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
Innovation award
Innovation award
Nominee: 1x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,111
This week:0
All time:3,386
This week:673Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2686
 
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar