|
|
10.3: Where to find and edit the php.ini file
Its always a good idea to keep register_globals turned off if possible. Just as in C/C++ programming, making every variable a global variable just for the sake of being easy is poor programming practice and can lead to some very serious security flaws.
10.3: Where to find and edit the php.ini file
Note that in my experience Panther does not install a php.ini anywhere. PHP is just configured to look for it in /etc, but no customized or sample php.ini ends up there on its own; so PHP as it ships with Panther simply gets initialized with all the default options.
As such searching for the non-existant file isn't particularly helpful. Since the CLI version gets installed, the easiest way is probably to extract the path from the phpini output, as it's already noted above:
Theoretically of course it's perfectly possible to have the Apache SAPI copy of the PHP interpreter and the CLI version point to different php.ini paths, so it's not a bad idea checking the phpinfo() output via a web browser.
Sample file was installed...
On my clean install of 10.3, I wound up with php.ini.default in /etc, and I know I didn't put it there!
Sample file was installed...
It's probably because a lot of people asked "where IS that php.ini" in previous versions of X" and it took them a long time to realise that they had to create (copy) it themselves...
10.3: Where to find and edit the php.ini file
Horribly inefficient.
10.3: Where to find and edit the php.ini file
Horribly inefficient. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|