Quote:
Originally Posted by darkyy1994
hey i got this error on top from the adminwatch webpanel
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/customers/webs/xxxxxx/adminwatch/includes/database.include.php on line 25
anyone know how to fix this?
everything is working but this is still here xD
|
Your Question tells the answer:
go to /var/customers/webs/xxxxxx/adminwatch/includes/database.include.php with a texteditor (e.g. nano) and edit line 25. If you are using ubuntu here are the steps:
To make a Backup of the file in the same directory:
Code:
sudo cp /var/customers/webs/xxxxxx/adminwatch/includes/database.include.php /var/customers/webs/xxxxxx/adminwatch/includes/database.include.phpbackup
To alter the line:
Code:
sudo nano /var/customers/webs/xxxxxx/adminwatch/includes/database.include.php
Find:
Code:
if( 0 == $this->Link_ID )
$this->Link_ID=mysql_connect( $this->Host, $this->User, $this->Password );
Alter it to:
Code:
if( 0 == $this->Link_ID )
$this->Link_ID=mysqli( $this->Host, $this->User, $this->Password );
Disclaimer:
I have no idea if that will work, I did not check the syntax of mysqli but give it a try or check the right syntax. I have done sudo here because I have no idea if the file is owned by our user or not. (Just in case some Sudo Buhu Kiddies will read this ;) )
__________________