Login   Register  
PHP Classes

reGlobal: Register request vars when register_globals is off

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Logan Dugenoux
Name: Logan Dugenoux <e-mail contact>
Packages: 6 Browse all classes by Logan Dugenoux Browse all classes by
Country: France France - PHP jobs in France
Age: ???
All time rank: 735 in France France
Week rank: 764 Down27 in France France Down

  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Logan Dugenoux  >  reGlobal  >  Download Download .zip .tar.gz  >  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
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 550 users
All time rank: 4912
Week users: 0 users
Week rank: 1828 Equal
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

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

  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
Accessible without login Plain text file example.php Example reGlobals example file
Accessible without login HTML file reGlobals.html Doc. reGlobals documentation
Plain text file reGlobals.php Class reGlobals class source

Download 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.