public function SaveTo($path, $alternate_name="", $chmod=true)
	{
		$name = $alternate_name ? $alternate_name : $this->Name;
		
		$fullpath = $path . $name;
		$handle = fopen($fullpath, "w");
		fwrite($handle, $this->Data);
		fclose($handle);
		
		if ($chmod) @chmod($fullpath, 0666);
	}
public function SaveTo($path, $alternate_name="", $chmod=true)
	{
		$name = $alternate_name ? $alternate_name : $this->Name;
		
		$fullpath = $path . $name;
		$handle = fopen($fullpath, "w");
		fwrite($handle, $this->Data);
		fclose($handle);
		
		if ($chmod) @chmod($fullpath, 0666);
	}
public function SaveTo ( $ path , $ alternate_name = "" , $ chmod = true ) { $ name = $ alternate_name ? $ alternate_name : $ this -> Name ; $ fullpath = $ path . $ name ; $ handle = fopen ( $ fullpath , "w" ) ; fwrite ( $ handle , $ this -> Data ) ; fclose ( $ handle ) ; if ( $ chmod ) @ chmod ( $ fullpath , 0666 ) ; }
Saves the file upload to the given path
@param string $path full path to save directory (trailing slash required)
@param string $alternate_name (optional) if not provided, $this->Name is used
@param bool $chmod (default=true) set file permission to 666
Saves the file upload to the given path