header('Pragma: public'); } else { header('Content-Disposition: attachment; filename="' . $nom_fic . '"'); header('Pragma: no-cache'); } // display */ send_file_download_headers($OOo->GetMimetypeDoc(), $nom_fic, 'attachment'); //header('Content-type: '.$OOo->GetMimetypeDoc()); //header('Content-type: '.$OOo->getMimetype()); header('Content-Length: '.filesize($OOo->GetPathnameDoc())); //header('Content-Length: '.filesize($OOo->GetPathname())); $OOo->FlushDoc(); //envoi du fichier traité $OOo->RemoveDoc(); //suppression des fichiers de travail //$OOo->sendResponse(); //envoi du fichier traité $OOo->remove(); //suppression des fichiers de travail // Fin de traitement des tableaux $OOo->close(); //======================================= // FIN AFFICHAGE DES DONNÉES //======================================= ?>
$nom_fic = $nom_fichier_modele[0] . "_" . $now . "." . $nom_fichier_modele[1]; /* header('Expires: ' . $now); if (my_ereg('MSIE', $_SERVER['HTTP_USER_AGENT'])) { header('Content-Disposition: inline; filename="' . $nom_fic . '"'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); } else { header('Content-Disposition: attachment; filename="' . $nom_fic . '"'); header('Pragma: no-cache'); } // display */ send_file_download_headers($OOo->GetMimetypeDoc(), $nom_fic, 'attachment'); //header('Content-type: '.$OOo->GetMimetypeDoc()); //header('Content-type: '.$OOo->getMimetype()); header('Content-Length: ' . filesize($OOo->GetPathnameDoc())); //header('Content-Length: '.filesize($OOo->GetPathname())); $OOo->FlushDoc(); //envoi du fichier traité $OOo->RemoveDoc(); //suppression des fichiers de travail //$OOo->sendResponse(); //envoi du fichier traité $OOo->remove(); //suppression des fichiers de travail // Fin de traitement des tableaux $OOo->close(); //======================================= // FIN AFFICHAGE DES DONNÉES //=======================================