When I run the function phpinfo() through a browser I get this path to php.ini:
/usr/local/php/lib/
When I run the same function in a command-line script I get this path to php.ini:
/etc/
Now, there is no php.ini in the /etc/ directory. There's only a php.ini.default file.
Does this mean that when I run a command-line PHP script it's loading php.ini.default?
The extensions_dir in both of these files is set to "./"
Now, when I run a script from the command line (and it references the /etc/php.ini.default file) it does not load GD.
My question is, should I change the extensions_dir in php.ini.default to point to /usr/local/php/lib ?
Thanks for any advice.
php.ini vs php.ini.default
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia