LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2016, 03:20 AM   #1
MeghanClaire
LQ Newbie
 
Registered: Jun 2015
Posts: 5

Rep: Reputation: Disabled
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
 
Old 09-26-2016, 06:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
- Can I override "register_argc_arg" in my php.ini on Hostforlife.eu? Do you have experience with them.
Dunno. You should ask them about this.


Quote:
- If I can't change "register_argc_argv" option, what can I do?
If you are allowed to use .htaccess files, then you can use the following inside a .htaccess:
Code:
php_value register_argc_argv on

Quote:
- I want to avoid modify all source codes. But if that's the only option, how should I change the problem line?
You can write a script that searches all .php files under docroot and does the change you want.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get trouble with PHP server in osCommerce MeghanClaire Linux - General 1 09-13-2016 10:07 AM
mail from php (oscommerce) martinlangley Linux - Software 1 06-02-2013 03:25 AM
Fedora Core includes PHP? Why won't it recognize OSCOMMERCE download? TSynergy Linux - Software 4 05-16-2004 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration