Login   Register  
PHP Classes
elePHPant
Icontem

Class: reGlobal

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Logan Dugenoux  >  reGlobal  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: reGlobal
Base name: reglobal
Description: Register request vars when register_globals is off
Related classes: , , ,
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 538 users
All time rank: 4335
Week users: 1 user
Week rank: 2467
Picture of Logan Dugenoux
Author: Logan Dugenoux <e-mail contact>
Packages: 6 Browse this author's classes Browse this author's classes
Country: France France - PHP jobs in France
Age: ???
All time rank: 696 in France France
Week rank: 171 Down9 in France France Down


  Detailed description  
When register_globals option is On in php.ini, PHP automatically fills variables like $userName with $HTTP_GET_VARS["username"], and so on. As it represents a security concern, the default value of this option is Off since PHP version 4.2.

This class provides two solutions to emulate the setting of register_globals On under PHP installations that have it disabled.

The first solution consists assigning the respective request global variables for the pages that depend on the effect of having register_globals option enabled.

The second solution consists on modifying consists on modifying automatically the current script source code to include statements that require the assignment of some global variables so this class is no longer needed.

See the PHP manual on the risks of having the register_globals option enabled.

 

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Utilities and Tools General purpose tools to simplify software development View top rated classes

  Rate classes User ratings   Applications   Related links   Files Files  

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

  Applications that use this class  
Link Description
register_globals risks official page about 'register_globals=On' risks
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Author's website Author's website

  Files folder image Files  
File Role Description
Plain text file example.php Example reGlobals example file
HTML file reGlobals.html Doc. reGlobals documentation
Plain text file reGlobals.php Class reGlobals class source

Download all files: reglobal.tar.gz reglobal.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.