FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Figure out path to php.ini
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Figure out path to php.ini [message #173490 is a reply to message #173479] Fri, 15 April 2011 19:49 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:4da80cac$0$6885$9b4e6d93(at)newsspool2(dot)arcor-online(dot)net,
Jo Schulze <antispam(at)feuersee(dot)de> typed:
> Mike wrote:
>
>> How can a php script figure out the path to the php.ini
>> file WITHOUT phpinfo() enabled?

PHPinfo() Enabled? Phpinfo is nothing but a list of all the settings on the
server for the various components you may use. phpinfo is a constant and
doesn't change on a per server basis even if they upgrade php. It's simply a
command if you will, to get that list and only needs to be done very, very
infrequently.

>
> The predefined const PHP_CONFIG_FILE_PATH should contain
> the directory where php.ini is located.

True, but to a newbie it could get confusing with all the php.ini files
strewn around his hard drive. They aren't all the same, where a phpinfo on
the server gets you the exact information you need. Also, if it's a turnkey
freebie like there are so many of these days, it wll be pretty well spelled
out n the docs that accompany it.
BTW, I haven't seen any yet that provide the right security settings for
either being a server to the outside world or just for testiing, etc. etc..
They leave that up to the user since there are so many different ways to do
it. Keep in mind I've only looked at the freebies that allow easy setup for
local server capability. Testing of code in other words.

HTH,

Twayne`
H,

Twayne`
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: regexp
Next Topic: summing an array of arrays
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:37:38 GMT 2024

Total time taken to generate the page: 0.05453 seconds