public function makeTempFile( $prefix = '', $content = '' ) {
		$fileName = $prefix . $this->getRandomHexString();
		$filePath = $this->path . DIRECTORY_SEPARATOR . $fileName;
		$ok = file_put_contents( $filePath, $content );
		if ( $ok === false ) {
			throw new GpgLibException( "Could not create temporary file at $filePath" );
		}
		return $filePath;
	}
public function makeTempFile( $prefix = '', $content = '' ) {
		$fileName = $prefix . $this->getRandomHexString();
		$filePath = $this->path . DIRECTORY_SEPARATOR . $fileName;
		$ok = file_put_contents( $filePath, $content );
		if ( $ok === false ) {
			throw new GpgLibException( "Could not create temporary file at $filePath" );
		}
		return $filePath;
	}
public function makeTempFile ( $ prefix = '' , $ content = '' ) { $ fileName = $ prefix . $ this -> getRandomHexString ( ) ; $ filePath = $ this -> path . DIRECTORY_SEPARATOR . $ fileName ; $ ok = file_put_contents ( $ filePath , $ content ) ; if ( $ ok === false ) { throw new GpgLibException ( "Could not create temporary file at $filePath" ) ; } return $ filePath ; }
Creates a temporary file in the directory with a random name.
@param string $prefix Filename prefix
@param string $content Initial file content
@return string Full path to the file
@throws GpgLibException
Creates a temporary file in the directory with a random name .