Is it possible to enforce changed in php.ini without re-booting (w2k)?

This is a discussion on Is it possible to enforce changed in php.ini without re-booting (w2k)? within the PHP Language forums, part of the PHP Programming Forums category; Is it possible to enforce changed in php.ini without re-booting (w2k)?...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-10-2004
aa
 
Posts: n/a
Default 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)?


Reply With Quote
  #2 (permalink)  
Old 11-10-2004
Alvaro G Vicario
 
Posts: n/a
Default 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):
> Is it possible to enforce changed in php.ini without re-booting (w2k)?


Restart the web server.


--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Reply With Quote
  #3 (permalink)  
Old 11-10-2004
aa
 
Posts: n/a
Default Thanks

Thanks


Reply With Quote
  #4 (permalink)  
Old 11-12-2004
Douglas F.
 
Posts: n/a
Default Re: Is it possible to enforce changed in php.ini without re-booting (w2k)?

"Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote in
message news:fc48b1gqwm77$.o6aiu9wwzcll$.dlg@40tude.net...
> *** aa wrote/escribió (Wed, 10 Nov 2004 12:00:49 -0000):
> > Is it possible to enforce changed in php.ini without re-booting (w2k)?

>
> Restart the web server.
>
>
> --
> -- Álvaro G. Vicario - Burgos, Spain
> -- Thank you for not e-mailing me your questions
> --


Can the web server like Apache be restarted with PHP code?


Reply With Quote
  #5 (permalink)  
Old 11-12-2004
Alvaro G Vicario
 
Posts: n/a
Default 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):
> Can the web server like Apache be restarted with PHP code?


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
--
Reply With Quote
  #6 (permalink)  
Old 11-16-2004
Donnie
 
Posts: n/a
Default Re: Is it possible to enforce changed in php.ini without re-booting(w2k)?

aa wrote:
> Is it possible to enforce changed in php.ini without re-booting (w2k)?
>
>

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.

Reply With Quote
  #7 (permalink)  
Old 11-16-2004
2metre
 
Posts: n/a
Default Re: Is it possible to enforce changed in php.ini without re-booting(w2k)?

Donnie wrote:
> aa wrote:
>
>> Is it possible to enforce changed in php.ini without re-booting (w2k)?
>>
>>

> 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.
>

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.)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0