Is it possible to enforce changed in php.ini without re-booting (w2k)?
Is it possible to enforce changed in php.ini without re-booting (w2k)?
Collapse
This topic is closed.
X
X
-
aaTags: None -
Alvaro G Vicario
Re: Is it possible to enforce changed in php.ini without re-booting (w2k)?
*** aa wrote/escribió (Wed, 10 Nov 2004 12:00:49 -0000):[color=blue]
> Is it possible to enforce changed in php.ini without re-booting (w2k)?[/color]
Restart the web server.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
-
aa -
Douglas F.
Re: Is it possible to enforce changed in php.ini without re-booting (w2k)?
"Alvaro G Vicario" <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in
message news:fc48b1gqwm 77$.o6aiu9wwzcl l$.dlg@40tude.n et...[color=blue]
> *** aa wrote/escribió (Wed, 10 Nov 2004 12:00:49 -0000):[color=green]
> > Is it possible to enforce changed in php.ini without re-booting (w2k)?[/color]
>
> Restart the web server.
>
>
> --
> -- Álvaro G. Vicario - Burgos, Spain
> -- Thank you for not e-mailing me your questions
> --[/color]
Can the web server like Apache be restarted with PHP code?
Comment
-
Alvaro G Vicario
Re: Is it possible to enforce changed in php.ini without re-booting (w2k)?
*** Douglas F. wrote/escribió (Fri, 12 Nov 2004 11:02:02 -0500):[color=blue]
> Can the web server like Apache be restarted with PHP code?[/color]
You can always use system(). It's only a matter of permissions: it's
normally not a good idea that the anonymous Apache user can restart the web
server.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Comment
-
Donnie
Re: Is it possible to enforce changed in php.ini without re-booting(w2k)?
aa wrote:[color=blue]
> Is it possible to enforce changed in php.ini without re-booting (w2k)?
>
>[/color]
If your using the CGI any changes you make will be effective immediately
because the CGI looks at php.ini every time it is accessed. If you're
using a module (e.g. ISAPI) then as stated you simply need to restart
your web server.
Comment
-
2metre
Re: Is it possible to enforce changed in php.ini without re-booting(w2k)?
Donnie wrote:[color=blue]
> aa wrote:
>[color=green]
>> Is it possible to enforce changed in php.ini without re-booting (w2k)?
>>
>>[/color]
> If your using the CGI any changes you make will be effective immediately
> because the CGI looks at php.ini every time it is accessed. If you're
> using a module (e.g. ISAPI) then as stated you simply need to restart
> your web server.
>[/color]
Can you confirm that PHP as CGI reads local php.ini files? I was under
the impression (think i read somewhere) PHP as CGI will only read the
main php.ini.
I have just tried a few tests and was unable to get php as CGI to read a
local php.ini (tried putting one in the document root directory for a
site, then tested with phpinfo.)
Comment
Comment