src/MySQLDump.php
public function save($file)
	{
		$handle = strcasecmp(substr($file, -3), '.gz') ? fopen($file, 'wb') : gzopen($file, 'wb');
		if (!$handle) {
			throw new Exception("ERROR: Cannot write file '$file'.");
		}
		$this->write($handle);
	}
public function save($file)
	{
		$handle = strcasecmp(substr($file, -3), '.gz') ? fopen($file, 'wb') : gzopen($file, 'wb');
		if (!$handle) {
			throw new Exception("ERROR: Cannot write file '$file'.");
		}
		$this->write($handle);
	}
public function save ( $ file ) { $ handle = strcasecmp ( substr ( $ file , - 3 ) , '.gz' ) ? fopen ( $ file , 'wb' ) : gzopen ( $ file , 'wb' ) ; if ( ! $ handle ) { throw new Exception ( "ERROR: Cannot write file '$file'." ) ; } $ this -> write ( $ handle ) ; }
Saves dump to the file.
@param  string filename
@return void
Saves dump to the file .