register_argc_argv = on

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

register_argc_argv = on

Post by DSM »

register_argc_argv = on

Can anyone tell why a host would have this set to "on" in the php.ini? I am having trouble running a script on a certain host that I run on 3 other servers without any probs. I have checked the others phpinfo and the only glaring difference is register_argc_argv is set to off on those, and on on this particular server. I'm using $_POST[var], $_SESSION[var], etc...
and my variables are not being carried to the next page/form.

Any help is greatly appreciated

Mike
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

hey DSM should your signature read: Lack "OF" planning?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Isn't it becuase it's using older version of PHP?
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

no, they are using 4.2.2

btw thx JPlush...
actually need to amend it to "...Unless you're my wife"
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Mighty PHP Manual wrote:register_argc_argv

The global PHP variables $argc (number of arguments passed to the application) and $argv (array of the actual arguments) are always registered and filled in with the appropriate values when using the CLI SAPI.
Hope this helps.
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

thx
Post Reply