InO Posted July 9, 2007 Share Posted July 9, 2007 i get Fatal error: Call to undefined function mysql_connect() because php can't find the extension. i've added libmysql.dll to my system path, i've uncommented extension=php_mysql.dll in php.ini, i've changed extension_dir from "./" , to "c:\Program Files\Apache Software Foundation\Apache2.2\ext", which is where php_mysql.dll , i didn't install it php in the C folder. i'm running a WAMP setup with windows xp. i'm just trying to get php to load the extension. thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/59126-problems-loading-mysql-extension/ Share on other sites More sharing options...
wildteen88 Posted July 9, 2007 Share Posted July 9, 2007 Try not to install PHP within Apaches directories. Install Apache and PHP in separate directories eg C:/Apache and C:/PHP. Never move any files outside of the PHP directory or the Apache directory. Only add the PHP directory (C:/PHP) to the path no other files/folders. When you start moving files outside of directories you can cause more problems than needs be. Especially when you want to upgrade a component. Also I have found having spaces within paths may/can cause problems. I prefer to install AMP in C:/Server which is set out like so: C:/Server | +-- Apache +-- PHP +-- MySQL +-- www I find this being the optimal set-up. Quote Link to comment https://forums.phpfreaks.com/topic/59126-problems-loading-mysql-extension/#findComment-293624 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.