src/MySQLImport.php
public function load($file)
	{
		$handle = strcasecmp(substr($file, -3), '.gz') ? fopen($file, 'rb') : gzopen($file, 'rb');
		if (!$handle) {
			throw new Exception("ERROR: Cannot open file '$file'.");
		}
		return $this->read($handle);
	}
public function load($file)
	{
		$handle = strcasecmp(substr($file, -3), '.gz') ? fopen($file, 'rb') : gzopen($file, 'rb');
		if (!$handle) {
			throw new Exception("ERROR: Cannot open file '$file'.");
		}
		return $this->read($handle);
	}
public function load ( $ file ) { $ handle = strcasecmp ( substr ( $ file , - 3 ) , '.gz' ) ? fopen ( $ file , 'rb' ) : gzopen ( $ file , 'rb' ) ; if ( ! $ handle ) { throw new Exception ( "ERROR: Cannot open file '$file'." ) ; } return $ this -> read ( $ handle ) ; }
Loads dump from the file.
@param  string filename
@return int
Loads dump from the file .