Re: PHP doesn't see register_globals = On in php.ini
| From: | Jerry | Date: | Wed, 04 Sep 2002 16:24:32 +0000 |
| Subject: | Re: PHP doesn't see register_globals = On in php.ini | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8326@lists.php.net to get a copy of this message | ||
In article <m3fzwq6ubw.fsf@pacbell.net>,
bs_php@hekneby.org (Bjorn Solberg) wrote:
> /usr/local/php/php.ini contains:
>
> register_globals = On
>
> phpinfo() says:
> Configuration File (php.ini) Path /usr/local/php/php.ini
> [...]
> Local Master
> register_globals Off Off
>
> Any ideas why it isn't setting register_globals On like php.ini tells it
> to? I'm using vanilla copy of php.ini-recommended that comes with the
> source, except for setting register_globals to On. I also tried with the
> php.ini-dist with the same modification to no avail.
If phpinfo() says /usr/local/php/php.ini, then that is what you need to
change.
1) make sure that php.ini has the correct permissions. It needs to be
readable by whatever user or group the web server is running as.
2) make sure that you know which /usr/local/php that refers to. If you
are logging in to one server, but the web server is on another server,
as is often the case, you need to make sure that register globals is on
for the web server.
You might also try adding
php_flag register_globals on
to a .htaccess file of the squirrelmail directory.
Jerry
--
http://www.hoboes.com/jerry/
"Give a man a fish and you feed him for a day. Teach him to fish, and you've
depleted the lake."--It Isn't Murder If They're Yankees
(http://www.hoboes.com/jerry/Murder/)