is that even possible?.. OsCommerce need these settings,
register_globals –> on
magic_quotes_gpc –> off
but unfortunately I am not allowed to edit the php.ini file because of shared hosting..
is any otherway to do it? I got only FTP access.
edit:
PHP Version 5.2.17
Server API CGI/FastCGI
2
Answers
You can try using “ini_set” at the top of your PHP script.
Documentation for ini_set is here: http://www.php.net/ini_set
I am not sure how OsCommerce works, but hopefully there is a main index.php file, and you would only have to modify that one.
Worst case scenario is that there is a mass of PHP files everywhere that would need to be modified.
Not all ini variables are changeable through ini_set. But some variables canbe changed in a custom php.ini.
In this case, you can’t change
magic_quotes_gpc
andregister_globals
throughini_set()
but you are allowed to change inPHP_INI_PERDIR
, that is, if your server allows you to create a custom php.ini, then you can change it there.