How to fix this php server erorr in oscommerce

I am running an osCommerce app on Hostforlife.eu. I'm not a php expert though. I recently found that some admin pages give errors. I narrowed the problem down to the following line:
Code:
$pIDlist_array=split("&", $_SERVER["argv"][0]);
$_SERVER["argv"][0] returns always NULL.



I think it's because "register_argc_argv" is off in global php configuration.
I created php.ini in the web root directory and the file has register_argc_argv = on. But it doesn't seem to override the default option. So here are my questions:

- Can I override "register_argc_arg" in my php.ini on Hostforlife.eu? Do you have experience with them.
- If I can't change "register_argc_argv" option, what can I do?
- I want to avoid modify all source codes. But if that's the only option, how should I change the problem line?

I need your help, thanks in advance
closed account (49iURXSz)
Note that this website specializes in the C++ programming language. In the future, please try a place such as http://www.phphelp.com.

That being said, you will want to talk to your hosting provider (hostforlife.eu) for support on this, since you've expressed avoiding changing the source code (which is a good idea, especially if you update your app and inadvertantly overwrite your fix that you've forgotten about).The PHP configuration is usually dependent on the hosting provider, that's the first place you'll want to start.

Reference - http://php.net/manual/en/reserved.variables.server.php
Topic archived. No new replies allowed.