I know that you already had some cases of this error on this forum, and i wouldn't like to open up old topics, but none of the solutions mentioned before, helped.
I am trying to run a local php script on a Debian based server, but every time i run it, i get this error message:
Fatal error: Call to undefined function mysql_connect() in /home/aod/SpinGather/databases/mysql.php on line 59
MySQL Server and MySQL module for php is loaded correctly, as you may already see here
http://188.138.113.166/index.php
And the php mysql_connect() function works as tested in this .php file
http://188.138.113.166/test.php
Using the script
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
The php script i am trying to run is a php irc bot from
http://www.phpbots.org
And the mysql.php file which issues the error is like this:
http://pastebin.com/PU6wsE57
I have also tried editing the mysql_connect function to be something like the test script i mentioned above, but still get the same error.
Any help?
Thanks in advance