PHP Classes

reGlobal: Register request vars when register_globals is off

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 561 This week: 1All time: 5,436 This week: 560Up
Version License Categories
reglobal 1.0GNU Lesser Genera...HTTP, Tools
Description 

Author

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.

Picture of Logan Dugenoux
Name: Logan Dugenoux <contact>
Classes: 6 packages by
Country: France France
Age: ???
All time rank: 785 in France France
Week rank: 416 Down17 in France France Down

  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:561
This week:1
All time:5,436
This week:560Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:56%StarStarStar
Documentation:62%StarStarStarStar
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3577