Apache2+PHP5+MySQL4 --> mysql_connect fails, PHP5+MySQL4+CLI --> mysql_connect works

From: Date: Thu, 11 Nov 2004 00:00:50 +0000
Subject: Apache2+PHP5+MySQL4 --> mysql_connect fails, PHP5+MySQL4+CLI --> mysql_connect works
Groups: php.windows 
Request: Send a blank email to php-windows+get-24961@lists.php.net to get a copy of this message
Relevant information: Windows XP Pro SP2 PHP 5.0.2 MySQL 4.0.21-nt Apache 2 PATH: C:\WINDOWS\system32 C:\c\WINDOWS C:\WINDOWS\System32\Wbem
C:\WBP\php               //PHP bin dir
C:\WBP\Apache2\bin //Apache bin dir MySQL's bin dir is not in path I have tried calling mysql_connect(...) with PHP's php_mysql.dll in and not-in the path. CLI works great, database gets put through hoops, lots of changes, all is good. In Apache, it fails at the connect: Fatal error: Call to undefined function mysql_connect() in C:\WBP\WBP\lib\db_capsule_mysql.php on line 124 both classes are using the same conect routine through the db_capsule wrapper call the same mysql_connect function. I have tried this with and without the php\ and Apache2\bin dirs in the path. Suggestions? -Jim Stapleton

« previous php.windows (#24961) next »