Saturday, July 5, 2008

Fedora 9: Enabling Argv and Argc Variables

There are a lot of PHP directives that are simply being disabled for some reasons. One of those PHP directives are variables necessary for getting and declaring argv and argc variable containing URL GET information.

If you happen to know how to PHP code and like to pass URL global variables to same URL PHP pages (itself), this could be a thinkering bell for you.

To enable ARGc and ARGv and retrieve PHP GET values from PHP pages,

Back and modify your global or local php.ini. Append PHP directive as shown

register_argc_argv = On

Some ISP or webhosting has a degraded declaration of these values, the below might work on your case

php_flag register_argc_argv  On

HTH

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy