You are here: Re: undefined function mysql_connect « PHP Programming Language « IT news, forums, messages
Re: undefined function mysql_connect

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!

 

Navigation:

[Reply to this 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

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