mysqli importer file - disable foreign keys I am using this script to import a mysql file but I want to set foreign key checks to 0 when he will do the import. 

https://github.com/davcs86/php-mysqlimporter/blob/master/php-mysqlimporter.php

Calling the file below with this function

include("Mysqlimporter.php");
$mysqlImport = new MySQLImporter($host, $username, $password);
$mysqlImport-&gt;doImport($source . "/var/dump.sql", $dbname, true, true);
}
SET foreign_key_checks = 0;
    //import data
    SET foreign_key_checks = 1;