PHP Classes

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: 142 This week: 1All time: 9,176 This week: 560Up
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 is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 52 packages by
Country: Pakistan Pakistan
Age: 22
All time rank: 84611 in Pakistan Pakistan
Week rank: 52 Up3 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x

Documentation

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:142
This week:1
All time:9,176
This week:560Up