Solution For Undefined Function mysql_connect()

From: Date: Tue, 08 May 2007 03:02:09 +0000
Subject: Solution For Undefined Function mysql_connect()
Groups: php.general 
Request: Send a blank email to php-general+get-254528@lists.php.net to get a copy of this message
SOLUTION FOUND! i copied libmysql.dll and php_mysql.dll to my c:\windows\ folder suddenly my script connects. that's all it took. my extension directory is set to C:\PHP in php.ini, but for some reason, placing the dlls in the windows folder did the trick. i searched httpd.conf and php.ini for "WINDOWS" and did not find a reference, but it works. thank you for taking the time to help. maybe this info can help you or someone you know. On 5/7/07, Richard Lynch <ceo@l-i-e.com> wrote:
Compare what <?php phpinfo();?> says is REALLY your extension dir with what you think is your extension dir... On Mon, May 7, 2007 6:12 am, Jason Paschal wrote: I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test database, so I installed MySQL. In php.ini, i have: ; Directory in which the loadable extensions (modules) reside. extension_dir = "C:\PHP" i made sure that i moved the dll to that folder, just like i did with the gd dll. And then i uncommented this line: extension=php_mysql.dll I restarted Apache, and ran a simple test script: <?php ini_set("display_errors","1"); $cn = mysql_connect("localhost","root","password"); ?> and I get the error: *Fatal error*: Call to undefined function mysql_connect() any ideas? thanks in advance, jason -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?
-- Crunchmutt Studios Latest News Headlines: http://www.rssvideonews.com http://www.crunchmutt.com http://www.deadjoe.com http://www.dailymedication.com http://www.extremesportclips.com http://www.coolanimalclips.com http://www.robotclips.com http://www.newsfinger.com http://www.postyourimage.com http://www.nakedalarmclock.com

« previous php.general (#254528) next »