Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php class Database extends PDO{ public function __construct() { t..
Decoded Output download
<?php
class Database extends PDO{
public function __construct() {
try{
//parent::__construct('mysql:host=localhost;dbname=dareyesm_db','dareyesm_root','root2015');
parent::__construct('mysql:host=localhost;dbname=db_brosty','usu_usuariolocal','princsintec',array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
parent::setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $ex) {
echo $ex . '<br>';
die('Error al conectar a la base de datos.');
}
}
}?>
Did this file decode correctly?
Original Code
<?php
class Database extends PDO{
public function __construct() {
try{
//parent::__construct('mysql:host=localhost;dbname=dareyesm_db','dareyesm_root','root2015');
parent::__construct('mysql:host=localhost;dbname=db_brosty','usu_usuariolocal','princsintec',array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
parent::setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (Exception $ex) {
echo $ex . '<br>';
die('Error al conectar a la base de datos.');
}
}
}?>
Function Calls
None |
Stats
MD5 | 02a8bf975646febe727b9300e27d1ba0 |
Eval Count | 0 |
Decode Time | 82 ms |