Re: apps that need register globals 'on' and others require 'off' on same server
| From: | Philip Olson | Date: | Tue, 30 Apr 2002 22:45:49 +0000 |
| Subject: | Re: apps that need register globals 'on' and others require 'off' on same server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95449@lists.php.net to get a copy of this message | ||
Use .htaccess, setting register_globals at runtime
will not have the desired affect.
Btw, I can't think of a reason why a script designed
with register_globals = off would not work with it
on. Which is why assuming register_globals = off will
make your scripts more portable.
See also: import_request_variables() and extract().
Regards,
Philip Olson
On 30 Apr 2002, Jeff Bearer wrote:
> I have a server where I'm running some third party apps.
>
> until now I've had register globals 'on', now I have a new app that
> requires register globals 'off' for it to work, if I change the php.ini
> to off then it breaks some of the other applications.
>
> Is there a way to turn register globals on or off in the script at
> runtime?
>
>
>
>
> --
> Jeff Bearer, RHCE
> Webmaster
> PittsburghLIVE.com
> 2002 EPpy Award, Best Online U.S. Newspaper
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>