You are here: "Call to undefined function mysqli_connect()" again « PHP Programming Language « IT news, forums, messages
"Call to undefined function mysqli_connect()" again

Posted by dumbledad@gmail.com on 04/17/06 11:56

Hi All,

I know this comes up lots but I have tried the previously posted
solutions and they are not working for me. I have a new installation of
MySQL and PHP running on Windows Server 2003 SP2 with IIS 6. I
installed MySQL 5.0.20 from the installer in mysql-5.0.20-win32.zip at
http://dev.mysql.com/downloads/mysql/5.0.html (and administrator 1.1.9
and query browser 1.1.20). I installed PHP 5.1.2 from the installer
php-5.1.2-installer.exe at http://www.php.net/downloads.php.

The install steps I took for PHP were:
1) Run the installer.
2) Add the installed path (C:\PHP) to the windows path and reboot
3) Unpack the pecl extension, the mysql, and the mysqli dlls into
C:\PHP\ext
4) Edit C:\PHP\php.ini to include
- the reference to doc_root at c:\inetpub\wwwroot
- the reference to extension_dir at c:\php\ext
- remove the commenting out of extension=php_mysql.dll
- add extension=php_mysqli.dll
5) Configure IIS following the instructions for IIS 6 at
http://uk2.php.net/manual/en/install.windows.iis.php
6) Copy libmysql.dll from php_5.1.2_mysqli_5.0.18-win32.zip into both
C:\PHP and C:\WINDOWS\system32
7) Restart IIS and the server.

But, when I go to my page http://213.199.145.32/HPfGUCatalogueT1/ I get
the error message:
Call to undefined function mysqli_connect()

What have I done wrong or failed to do? Does anyone have hints on how I
can diagnose the problem? Judging by the forums and newsgroups it seems
to be a problem that occurs repeatedly, but none of the solutions
suggested before that I have found (e.g. making sure the php.ini file
is correct, adding c:\php to the path, copying libmysql.dll into
C:\WINDOWS\system32, ...) work for me.

Cheers,

Tim.

PS I wasn't sure where to post this so I've cross-posted it in
nntp://comp.lang.php and in http://forums.mysql.com/ I'll copy any
solution over.

 

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

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