mySql in PHP 4.2.2
Hello!
I am useing RH8 and runing Apache on it. I have installed it with PHP 4.2.2 and mySql support. But when i want to conect to the mySql database in PHP, I get an error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/db.php on line 6 I tried also with mysql_pconect() but did not worked. Both Apache and mySql are runing on the sistem. A am also new to the Linux and I want to know if I have to edit any of the configuration files. And where are located. Thank you for your help. Best, Blaz |
Did you install via rpms? if so you will need to install the "php-mysql" package as well as php and mysql.
|
I select all php and mysql packages during the installation of RH8.
Blaz |
What output do you get when you run:
rpm -qa | grep php |
Thank you david_ross, you were right. I have to manualy install php-mysql package. I did not know that.
Now it all works :) . |
All times are GMT -5. The time now is 08:07 AM. |