Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2016-08-23 15:55:33 +02:00
parent fa2f629c73
commit cfedf3d1b8
2 changed files with 3 additions and 3 deletions

View File

@ -23,9 +23,9 @@ class Conn
function open ($host, $user, $pass, $name, $port = NULL)
{
$conn = $this->conn = mysqli_init ();
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
$conn->options (MYSQLI_OPT_LOCAL_INFILE, TRUE);
@$conn->real_connect ($host, $user, $pass, $name, $port);
$conn->options (MYSQLI_READ_DEFAULT_FILE, __DIR__.'/my.cnf');
$conn->real_connect ($host, $user, $pass, $name, $port);
if (mysqli_connect_errno ())
{

0
vn/db/my.cnf Executable file → Normal file
View File