MySQL Forums
Forum List  »  Newbie

Re: Fatal error: Call to undefined function mysql_connect()
Posted by: Roland Bouman
Date: August 06, 2005 08:11PM

This is because your mysql extension is not loaded when php starts up.

You have to edit you php.ini and uncomment the

extension=php_mysql.dll

line. this file should be in Windows\system directory, unless you overrided that in you apache configuration (look for apache directive PHPIniDir as in:
PHPIniDir "D:/PHP/config/"
)

BTW when you install php, you have to copy the php.ini file yourself to the windows system directory. Look at the readme distirbuted with php for more info.

Options: ReplyQuote


Subject
Written By
Posted
Re: Fatal error: Call to undefined function mysql_connect()
August 06, 2005 08:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.