MySQL Forums
Forum List  »  Newbie

Connect php4 and mysql
Posted by: Ragnar Frostason
Date: July 16, 2005 03:39PM

Hi, I'm new in this php and mysql things and just installed PHP4, Mysql and Apache in my Linux Ubuntu.

I've programmed couple of files in php but when I'm trying to open them, using http://localhost/ then I get this error:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/addressbook/add.php on line 19

In Line 19 I'm trying to connect to mysql using the pconnect function.

I've searched alot via google to try to find this solution and thing my problem is that my PHP4 doesn't support mysql and all the answers I'v found are related to if I installed PHP4 using *.tar file.
But I used apt to install the whole thing so I've no idea how to add this mysql support to PHP4.

If there's anyone that can help me with this problem would that be awesome

Options: ReplyQuote


Subject
Written By
Posted
Connect php4 and mysql
July 16, 2005 03:39PM


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.