Salve a tutti,
ho questo codice che mi permette di copiare il contenuto di un file .sql nel mio database. Fino a poco tempo fa funzionava e ora mi dà questo errore:
Strict Standards: Only variables should be passed by reference in /web/htdocs/www.eltipicoitaliano.com/home/import.php on line 31
$mysqlDatabaseName ='DB';
$mysqlUserName ='UserDB';
$mysqlPassword ='PWDB';
$mysqlHostName ='HOSTDB';
$mysqlImportFilename ='nomefile.sql';
//DONT EDIT BELOW THIS LINE
//Export the database and output the status to the page
if (file_exists($mysqlImportFilename)) {
$command='mysql -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword .' ' .$mysqlDatabaseName .' < ' .$mysqlImportFilename;
exec($command,$output=array(),$worked); -----> Line 31
Qualcuno potrebbe aiutarmi?
Grazie mille