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)?...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
*** 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 -- |
|
|||
|
"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? |
|
|||
|
*** 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 -- |
|
|||
|
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. |
|
|||
|
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.) |