skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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 and register_globals through ini_set() but you are allowed to change in PHP_INI_PERDIR, that is, if your server allows you to create a custom php.ini, then you can change it there.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search