0

A client asked me to solve this problem, but I don't understand anything.

--The error that appears--

Warning: mysql_connect(): The server requested authentication method unknown to the client [mysql_old_password] in /home/luipex/public_html/includes/adodb/drivers/adodb-mysql.inc.php on line 348

Warning: mysql_connect(): The server requested authentication method unknown to the client in /home/luipex/public_html/includes/adodb/drivers/adodb-mysql.inc.php on line 348

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/luipex/public_html/includes/adodb/drivers/adodb-mysql.inc.php:348) in /home/luipex/public_html/includes/ligacao.php on line 15

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/luipex/public_html/includes/adodb/drivers/adodb-mysql.inc.php:348) in /home/luipex/public_html/includes/ligacao.php on line 15

ligacao.php

session_start(); 15
$tempo_actual=time(); 16
if(!(session_is_registered("id_user_activo"))) 17
{ 18
$testesite=0; 19

adodb-mysql.inc.php

if (ADODB_PHPVER >= 0x4300) 346
        $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword, 347
                                            $this->forceNewConnect,$this->clientFlags); 348
    else if (ADODB_PHPVER >= 0x4200) 349
        $this->_connectionID =  mysql_connect($argHostname,$argUsername,$argPassword, 350
                                            $this->forceNewConnect); 351
Community
  • 1
  • 1
  • session_is_registered has been removed from php as of 5.4. It hasn't been used for several years. You can just check `isset($_SESSION['key_name'])` to get the same result. – Jonathan Kuhn Jul 23 '15 at 17:33
  • 1
    If you can, you should [stop using `mysql_*` functions](http://stackoverflow.com/questions/12859942/why-shouldnt-i-use-mysql-functions-in-php). They are no longer maintained and are [officially deprecated](https://wiki.php.net/rfc/mysql_deprecation). Learn about [prepared](http://en.wikipedia.org/wiki/Prepared_statement) [statements](http://php.net/manual/en/pdo.prepared-statements.php) instead, and consider using PDO, [it's really not hard](http://jayblanchard.net/demystifying_php_pdo.html). – Jay Blanchard Jul 23 '15 at 17:42

0 Answers0