Contributions

Other (Category Index)
Search: 

Install with register_long_arrays set to OFF

This script amends all .php files in the current directory and all subdirectories so that the older predefined variables ($HTTP_*_VARS) are all changed to the corresponding superglobals.
This enabled install, catalog and admin to work on my web host when Register_long_arrays was set to OFF

Expand All / Collapse All

BASH script for fixing register_long_arrays 9 Jan 2007

This just modifies MikOn's idea and puts the code in a shell script for those who don't wish to set all their files to world-writable.

Requires the Bourne-Again Shell (BASH,) Gnu find and Gnu sed. All these are typically found on most Linux distros. Windows users can use Cygwin (www.cygwin.com) to execute the file.

Tested on existing and new installs of OSC.

Install with register_long_arrays set to OFF 3 Aug 2006

Note: Contributions are used at own risk.