Skip to content

Instantly share code, notes, and snippets.

View npget's full-sized avatar

RichFraYoli npget

View GitHub Profile
<?php
public function open_file_exp_doc($url){
header('Content-Description:NpGet-Archistore-Files');
header("Content-Type: ".$this->FileMtipe($url));
header("Content-Disposition: inline; filename=".basename($url));
header('Content-Transfer-Encoding: binary\n');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
ob_clean();