Jump to content

[SOLVED] undefined function


jakebur01

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.