Hello all,
I have on RH-9 installed apache server, mysql and PHP.
I could view the test page via the browser, hence Apache is installed correctly.
I could create databases / tables, hence mysql is working fine.
Using the vi editor i could create a sample .php file and saved it in the default document root \"/var/www/html\".
I could view this file, but when i add a database connection using mysql_connect i get the following error :Call to undefined function: mysql_connect().
In php.ini file i have left the
default_port blank.
default_socket as /var/lib/mysql/mysql.sock
default_host as the server name where LAMP is installed
default_user as root
default_password as blank.
my syntax for db connection is :mysql_connect(\"servername\",\"root\",\"\");
httpd version :httpd-2.0.40-21.5
mysql :MySQL-3.23.51-1
php :php-4.2.2-17.2
php-mysql :php-mysql-4.2.2-17.2