php.exe -> php.ini
Posted by: jamestrowbridge (63.241.252.---)
Date: January 25, 2010 05:01PM

I am having trouble finding which php.ini file php.exe ( or PHP Command Line ) is using, since it cannot find the mysqli extension, but the same PHP script on the same server can find it no problem via Apache. Anyone have any ideas on what could be going on / which php.ini file I should be editing? Thank you.

Options: ReplyQuote
Re: php.exe -> php.ini
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: January 25, 2010 07:02PM

php that runs in apache for website use uses the php.ini found on the wamp menu

left click wamp > php> php.ini


the actual file this is opening is in

c:/wamp/bin/apache/apachex.x.x/bin/php.ini

which is a copy of

c:/wamp/bin/php/phpx.x.x/phpforapache.ini

and is copied when wamp is started up.


the php.ini for the PHP CLI is located at

c:/wamp/bin/php/phpx.x.x/php.ini


May seem complicated but its the way it must be.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: php.exe -> php.ini
Posted by: jamestrowbridge (63.241.252.---)
Date: January 27, 2010 03:59PM

Thank you, I think I deleted that one so it would not confuse me in the future since I didn't know why there were two... and what did it end up doing? ha Thanks again.

-Jim

Options: ReplyQuote


Sorry, only registered users may post in this forum.