PHP Classes
Icontem

Class: Web Server Info


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Svetoslav Marinov  >  Web Server Info  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Web Server Info Support forum
Base name: webserverinfo
Description: Fix request values to work with different servers
Version: -
Required PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 1097 users
All time rank: 2314
Week users: 1 user
Week rank: 3788
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Svetoslav Marinov
Name: Svetoslav Marinov <e-mail contact>
Published packages: 6 Browse this author's classes Browse this author's classes
Country: Canada Canada - PHP jobs in Canada
Home page: http://devquickref.com/ http://devcha.blogspot.com/ http://seofilter.org/
Age: 28
All time rank: 79
Week rank: 67

Innovation Award

PHP Programming Innovation award winner
November 2006
Winner
PHP can run with different Web servers in different modes. Each Web server may set different environment variables with details about each HTTP request. This makes more difficult to develop Web server independent applications.

This class provides a solution to this problem. It rewrites certain PHP super-globals that store environment variables set by the Web server.

This way, applications do not need to be adapted to run with different Web servers.

Manuel Lemos

Groups

Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image System information Information about servers, processes and operating system facilities View top rated classes

Detailed description

This class can be used to fix the values of super-global variables so they have the same values independently of the Web server.

It can:

- Fixes PATH_TRANSLATED variable to use only / as path separator
- Set the REQUEST_URI to SCRIPT_NAME or QUERY_STRING when the REQUEST_URI is not set
- Set the SERVER_SIGNATURE with values based on SERVER_SOFTWARE, SERVER_NAME, and SERVER_PORT when SERVER_SIGNATURE is not set
- Set SCRIPT_FILENAME based on PATH_TRANSLATED when SCRIPT_FILENAME is not set
- Set DOCUMENT_ROOT based on REQUEST_URI and PATH_TRANSLATED when DOCUMENT_ROOT is not set

User ratings

There are not enough user ratings to display for this class.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file example1.php Example example1
Plain text file example2.php Example example2
Plain text file example3.php Example example3
Plain text file LICENSE Lic. LICENSE
Plain text file README Doc. README
Plain text file WebServerInfo.class.php Class WebServerInfo class
Download all files: webserverinfo.tar.gz webserverinfo.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products