wildscribe
May 21st, 2005, 07:07 PM
Hi Folks,
Got two questions that I was hoping you could help me out with. I am a complete newbie to Debian and Ubuntu.
I am having problems getting MySQL to work with PHP4. I keep getting the error message:
Fatal error: Call to undefined function: mysql_connect() in /var/www/mysql_up.php on line 12
(Note that mysql_up.php is a script that I am using to test the connection between PHP and MySQL.)
I did some research and found that I needed to have php4-mysql installed for it to work, but when I ran “sudo apt-get install php4-mysql” I kept getting the package not found message.
Has the php4-mysql package been renamed? Or is there another way that I can get MySQL to work with PHP? I am thinking about uninstalling and reinstalling PHP, but I am sure there is a better way.
My second question is how do I upgrade programs. I would like to upgrade to PHP5 from PHP4 and I would also like to upgrade to MySQL 4.1 from MySQL 4.0
Any and all help is appreciated.
- - - - Wild
Got two questions that I was hoping you could help me out with. I am a complete newbie to Debian and Ubuntu.
I am having problems getting MySQL to work with PHP4. I keep getting the error message:
Fatal error: Call to undefined function: mysql_connect() in /var/www/mysql_up.php on line 12
(Note that mysql_up.php is a script that I am using to test the connection between PHP and MySQL.)
I did some research and found that I needed to have php4-mysql installed for it to work, but when I ran “sudo apt-get install php4-mysql” I kept getting the package not found message.
Has the php4-mysql package been renamed? Or is there another way that I can get MySQL to work with PHP? I am thinking about uninstalling and reinstalling PHP, but I am sure there is a better way.
My second question is how do I upgrade programs. I would like to upgrade to PHP5 from PHP4 and I would also like to upgrade to MySQL 4.1 from MySQL 4.0
Any and all help is appreciated.
- - - - Wild