PHP Site URL: Get URLs related with the current request site

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 136 All time: 9,053 This week: 312Up
Version License PHP version Categories
php-site-class 1.0.1MIT/X Consortium ...5HTTP, PHP 5
Description Author

This class can get URLs related with the current request site.

It checks the current HTTP request values and returns several types of URLs related with the current site. Currently it can return:

- Site URL
- Current page URL
- Current site http or https protocol
- Server name
- TCP port
- Current request Uri
- An array with the URL path split in parts separated by the slash character : /
- Etc.

It can also redirect the current request to another URL, or the previous page using the referrer URL.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 46 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 4x

Details

PHP Site class

This class can get URLs related with the current request site.

Feature

This class can get URLs related with the current request site.

It checks the current HTTP request values and returns several types of URLs related with the current site. Currently it can return:

  • Site URL
  • Current page URL
  • Current site http or https protocol
  • Server name
  • TCP port
  • Current request Uri
  • An array with the URL path split in parts separated by the slash character : /
  • Etc.

It can also redirect the current request to another URL, or the previous page using the referrer URL.

  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file init.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. create
Accessible without login Plain text file Readme.md Doc. Documentation

  Files folder image Files  /  classes  
File Role Description
  Plain text file Site.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:136
This week:0
All time:9,053
This week:312Up

For more information send a message to info at phpclasses dot org.