My Links doesn't show up. Removing the @ sign gives this error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/test.php on line 4
Line 4 is:
$dbcnx = mysql_connect('localhost', 'root', 'test');
I Googled the error and I think found the problem.
According to phpinfo():
Code:
Configure Command '../configure' '--prefix=/usr'
'--with-apxs2=/usr/bin/apxs2' '--with-config-file-path=/etc/php4/apache2'
'--enable-memory-limit' '--disable-debug' '--with-regex=php'
'--disable-rpath' '--disable-static' '--with-pic' '--with-layout=GNU'
'--with-pear=/usr/share/php' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype'
'--with-db4' '--with-iconv' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-gettext' '--enable-mbstring'
'--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets'
'--enable-wddx' '--disable-xml' '--with-expat-dir=/usr' '--with-xmlrpc'
'--enable-yp' '--with-zlib' '--without-pgsql' '--with-kerberos=/usr'
'--with-openssl=/usr' '--enable-dbx'
'--with-mime-magic=/usr/share/misc/file/magic.mime'
'--with-exec-dir=/usr/lib/php4/libexec' '--without-mm'
'--without-mysql' '--without-sybase-ct'
My mysql support hasn't been enabled.
In order to enable it I installed php4-mysql from the ubuntu repositories and presto it worked.
Thanks for the help Matir! Problem solved!
vxc