|
Posted by Alan Silver on 08/21/07 10:48
In article <qOv3MNfwfryGFwmJ@nospamthankyou.spam>, Alan Silver
<alan-silver@nospam.thanx.invalid> writes
>Hello,
Quick follow-up to my question...
I noticed that the phpinfo() shows you the path that PHP uses to look
for the php.ini file. This currently shows as C:\Windows, which is where
php.ini lives, but when run from IIS, the next line down says:
Loaded Configuration File (none)
....which looks like it is the problem. If IIS isn't loading php.ini when
it runs PHP, then it will use the default configuration, which doesn't
load the MySql extension.
When I run phpinfo() from a command line, the configuration file is
loaded OK, which is presumably why PHP can connect to MySql from command
line scripts.
So, I think I've found the problem, but I'm not sure how to fix it.
TIA again for any help
--
Alan Silver
(anything added below this line is nothing to do with me)
Navigation:
[Reply to this message]
|