final public function restore($fname = null)
	{
		if (is_null($fname)) {
			$fname = $this->database;
		}
		if ($this->pathExtension($fname) === '') {
			$fname .= '.sql';
		}
		if ($this->pathDirname($fname) === '.') {
			$fname = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $fname;
		}

		if (@file_exists($fname) and $sql = @file_get_contents($fname)) {
			return ($this->exec($sql) > 0);
		}
		return false;
	}
final public function restore($fname = null)
	{
		if (is_null($fname)) {
			$fname = $this->database;
		}
		if ($this->pathExtension($fname) === '') {
			$fname .= '.sql';
		}
		if ($this->pathDirname($fname) === '.') {
			$fname = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $fname;
		}

		if (@file_exists($fname) and $sql = @file_get_contents($fname)) {
			return ($this->exec($sql) > 0);
		}
		return false;
	}
final public function restore ( $ fname = null ) { if ( is_null ( $ fname ) ) { $ fname = $ this -> database ; } if ( $ this -> pathExtension ( $ fname ) === '' ) { $ fname .= '.sql' ; } if ( $ this -> pathDirname ( $ fname ) === '.' ) { $ fname = $ _SERVER [ 'DOCUMENT_ROOT' ] . DIRECTORY_SEPARATOR . $ fname ; } if ( @ file_exists ( $ fname ) and $ sql = @ file_get_contents ( $ fname ) ) { return ( $ this -> exec ( $ sql ) > 0 ) ; } return false ; }
Restore a file from a mysqldump

@param  string $fname Name of file, defaults to database name
@return bool
Restore a file from a mysqldump