PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2018-07-26 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 136 All time: 8,957 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.

Name: Muhammad Umer Farooq is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 45 packages by
Country: Pakistan Pakistan
Age: 18
All time rank: 102912 in Pakistan Pakistan
Week rank: 93 Up3 in Pakistan Pakistan Up
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:8,957
This week:312Up