If your server is configured with suphp, here is now to enable register_globals for php5:
- Create a file named php.ini and insert this into it:
register_globals = On - Upload this file to inside your public_html folder
- Create a file named .htaccess and put this into it:
SuPHP_ConfigPath /home/acc_username/public_html/php.iniWhere acc_username is your account username
- Put this .htaccess into inside public_html and that should be it.
If your server doesn’t have suphp, here is how to enable register_globals:
- Create a file named .htaccess and put this into it:
php_value register_globals 1 - Upload this .htaccess to inside your public_html folder
- Done
{ 5 comments… read them below or add one }
does SuPHP_ConfigPath /home/acc_username/public_html/php.ini mean /opt/suphp/etc/suphp.conf /home/site1/public_html/php.ini
It means:
SuPHP_ConfigPath /home/site1/public_html/php.ini
Thanks for the info my host has upgraded to php 5.3 and the first solution work like a charm . thanks mate
wow, it’s work…!!!! great tutorial.
i’ve been test it in the my server hosting wich disable register global and now, it enabled.
Thanks.
Realy working……thanks