|
Posted by zero on 11/23/05 18:24
Jerry Stuckle <jstucklex@attglobal.net> wrote in
news:et-dnVxdjKqY6xneRVn-jg@comcast.com:
> zero wrote:
>> I know this question has come up before (I found lots of sites
>> discussing it), but I just can't get it to work.
>>
>> I have PHP 5.0.4 and MySQL 5.0.16 (community edition). PHP runs
>> under MS IIS 5.1 (XP Pro SP2). Independently, both PHP and MySQL run
>> fine (other php pages work fine, and I can access mysql tables
>> through jdbc), but when I try to query a database from PHP, I get the
>> infamous "Call to undefined function mysql_connect()" error.
>>
>> I have uncommented "extension=php_mysql.dll" in php.ini in G:\php\,
>> which in turn is mentioned in the Windows PATH. I have also made
>> sure the libmysql.dll and php_mysql.dll files are in the same G:\php\
>> directory.
>>
>> What am I missing here?
>>
>> TIA,
>> zero
>
> You did stop and start the web server, right?
>
> What does phpinfo() show?
>
> Look for the mssql extensions to see if they are loaded.
>
> Also, which php.ini is it using? Is it the one you changed?
>
It was indeed using the wrong php.ini. I changed the path in the registry,
and now it works :-)
Thanks!
[Back to original message]
|