jakebur01 Posted August 16, 2007 Share Posted August 16, 2007 I just installed apache, php, and mysql. I ran a little test php script with mysql_connect() or die(); I am getting this error: Fatal error: Call to undefined function mysql_connect() in /var/www/index.php on line 11 Is this a php problem or a mysql problem? Is their something I need to set in my php.ini file in order to be able to connect? Link to comment https://forums.phpfreaks.com/topic/65297-solved-undefined-function/ Share on other sites More sharing options...
plutomed Posted August 16, 2007 Share Posted August 16, 2007 Have you specified all the bits the mysql_connect(host, username, password); Link to comment https://forums.phpfreaks.com/topic/65297-solved-undefined-function/#findComment-326090 Share on other sites More sharing options...
akitchin Posted August 16, 2007 Share Posted August 16, 2007 as of PHP 5, mysql functions are no longer automatically bundled within the core. you need to manually enable the mysql library's inclusion. have a search in google for tutorials involving installation of PHP 5 - it's mostly a matter of adjusting the php.ini, where the modules to load at runtime are concerned. Link to comment https://forums.phpfreaks.com/topic/65297-solved-undefined-function/#findComment-326092 Share on other sites More sharing options...
jakebur01 Posted August 16, 2007 Author Share Posted August 16, 2007 ok thanks. Link to comment https://forums.phpfreaks.com/topic/65297-solved-undefined-function/#findComment-326095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.