|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-03 16:53 UTC] jonathan at strutt dot co dot uk
[2009-06-03 17:04 UTC] jonathan at strutt dot co dot uk
[2009-06-03 20:58 UTC] philip@php.net
[2009-06-11 01:00 UTC] doc-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 06:00:01 2025 UTC |
Description: ------------ Using IIS 7 over Windows Vista Business and PHP 5.2.9 in ISAPI mode. Receive the following error when trying to connect to MySQL database: Fatal error: Call to undefined function mysql_connect() in S:\northfusion\company\websites\cleverboxed\www\_assets\_includes\class_ db.php on line 16 In addition, when viewing the output of phpinfo(), it states the php.ini file being used is c:\windows\php.ini and that the extension library location is "./". However, in the c:\windows\php.ini file, the extension location is set to "C:\php\ext". It looks as though this isn't being picked up despite numerous IIS restarts. Reproduce code: --------------- //.. function connect() { // bring in config global $config; // create database handle $this->handle = mysql_connect($_config->db->host, $_config->db->username, $config->db->password); } //.. Expected result: ---------------- Open connection to the database Actual result: -------------- Returned error: Fatal error: Call to undefined function mysql_connect() in S:\northfusion\company\websites\cleverboxed\www\_assets\_includes\class_ db.php on line 16