Home »
Imported messages »
comp.lang.php »
php.ini loading
php.ini loading [message #184623] |
Mon, 13 January 2014 03:25  |
Scott Johnson
Messages: 196 Registered: January 2012
Karma: 0
|
Senior Member |
|
|
I am running PHP as an Apache Module.
PHP 5.2.6
On my local server it is loading the php.ini from C:\Windows\php.ini
I am having 2 issues that I can hope to resolve.
1. I would prefer it to load from the working directory which getcwd()
shows to be my site root (as expected). This was never a problem before
but I need to have some independent configs since my clients are across
different servers.
The config text says it will look for it in the working directory which
I think brings me to issue 2.
2. The php.ini only reloads when I restart the apache server not on
each page call which I think is why it is loading the default.
When I changed the config on the production server it would reflect it,
but not on the local.
So in a nut shell I would like to have the config file loaded from my
working directory on each invocation of a php page.
Is this possible or am I looking at this all wrong?
Thanks
Scotty
|
|
|
|
|
|
Re: php.ini loading [message #184637 is a reply to message #184623] |
Tue, 14 January 2014 00:05  |
Scott Johnson
Messages: 196 Registered: January 2012
Karma: 0
|
Senior Member |
|
|
On 1/12/2014 7:25 PM, Scott Johnson wrote:
<snipped>
Thanks to everyone for suggestions.
Not sure why I had it in my brain to load separate configs since it has
never been an issue previously.
On further thought and study it would be a security issue as Jerry and
Arno pointed out.
Thanks for clearing the cob webs.
Scotty
|
|
|
Goto Forum:
Current Time: Mon Apr 07 17:54:37 GMT 2025
Total time taken to generate the page: 0.05295 seconds