Sans nom
public php v1 · immutableif (file_exists($f)) { $file = fopen($f, "r"); ob_clean(); header('Content-type: '."text/csv"); header('Content-Disposition: inline; filename="'.$f.'"'); fpassthru($file); } else { exit ('File "'.$f.'" not found.'); } exit();