-1
I have Centos installed with php+apache working
this centos is local but I want to use this local server to connect to a mysql database on an internet server.
I have Firebird installed in this centos, and I can connect to it normally.
When I try to connect to Mysql this error.
Fatal error: Call to undefined function mysql_connect() in
Note. the connection file works correctly on the server that is on the internet.
If it is a very new php this function doesn’t even exist. Try
mysqli_connect()
. Obs: as you already have some questions on the site, I think it’s good to start formatting better and be clearer by putting all the relevant details (versions, how you’re testing, etc), so you can better enjoy the site. These links here can help: [Ask] and Community FAQ– Bacco
Check the php versions of both servers. You can do it this way, create a file with this content:
<?php phpinfo();
.– rray
in phpinfo() I only found this reference to mysql '-without-mysql'
– Adrianoecris
This might help http://stackoverflow.com/a/13825555/1342547
– rray