Login   Register  
PHP Classes
elePHPant
Icontem

Redirection Detector: Check and retrieve the redirection URL of a page

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   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-06-29 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 493 All time: 5,285 This week: 1,435Up
Version License PHP version Categories  
redirection-detector 1.0Free for non-commercial...5.0HTML, HTTP, PHP 5
Description Author  

This class can be used to check and retrieve the redirection URL of a page.

It can check if accessing a given page redirects the browser to another page, either via response headers or meta tags.

The class returns the redirection URL if the browser would be redirected to another page.

Innovation Award  
PHP Programming Innovation award nominee
July 2010
Number 6
When a browser accesses a Web page, the server can send an HTTP header to redirect the browser to another page.

However, there are other ways to redirect a browser to another page, like for instance using HTML META tags.

This class provides a solution to detect whether the browser will be redirected to another page, by detecting both HTTP and HTML META tag redirection.

Manuel Lemos
Picture of Jaroslaw Miazga
Name: Jaroslaw Miazga <contact>
Classes: 3 packages by
Country: Poland Poland
Age: ???
All time rank: 218355 in Poland Poland
Week rank: 1086 Up27 in Poland Poland Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file detect.php Example Example of using this class
Plain text file RedirectionDetector.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%Total:493All time:5,285
 This week:0This week:1,435Up