WebServerInfo PHP class

WebServerInfo PHP class is intended for developer who create software that will run on different web servers.
Download

WebServerInfo PHP class Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Svetoslav Marinov
  • Publisher web site:
  • http://funcs.org/code/php/WebServerInfo/

WebServerInfo PHP class Tags


WebServerInfo PHP class Description

WebServerInfo PHP class is intended for developer who create software that will run on different web servers. WebServerInfo PHP class is intended for developer who create software that will runon different web servers. The project gives a developer a consistent interface for accessing web server's variables.Usage:You have following options:Option #1 require_once("WebServerInfo.class.php"); $obj = new WebServerInfo(); print $_SERVER;Option #2 require_once("WebServerInfo.class.php"); $obj = new WebServerInfo(); print $obj->get('DOCUMENT_ROOT');Option #3 uncomment the 3rd line from WebServerInfo.class.php and all you have to do is require the WebServerInfo.class.php class.Note: The constructor of WebServerInfo class overrides $_SERVER variable and variables can be accessed as usual way.Following base variables are exported if they do not exist. REQUEST_URI REDIRECT_URL DOCUMENT_ROOT SERVER_SIGNATURE SERVER_ADDR SCRIPT_FILENAME


WebServerInfo PHP class Related Software