Reply to Re: Newbie: MySql is loaded when PHP runs from command line, but not through IIS

Your name:

Reply:


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)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация