I had an old script that needed to have register_globals enabled. now in general this is a BAD ida but what can you do? No time to rewrite it and its used mostly for internal things.

So how do you enable register_globals for just one user (or even subdomains?).

in the OLD days i would just add the following line to the .htaccess file in the directory
php_flag register_globals on

THIS WILL NOT WORK in cpanel

PHP in Apache in cpanel is (by default) compiled as suPHP, which will NOT support php_flag option in .htaccess

SOLUTION
make a copy of your php.ini file into the directory, and modify the php.ini file.

cd /usr/local/lib/php.ini /home/username/www/php.ini

Then simple edit the php file and modity register_globals = on instead of off.

Thats all theres to it

Posted in Uncategorized

Leave a Reply

Your email address will not be published.