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

Posted by David Haynes on 11/23/05 21:28

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
What do you have extension_dir set to?
It should point to the ext directory (G:\php\ext)

-david-

 

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

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