| name | language | licence |
|---|---|---|
| JS/JQUERY : Script pour gestion onglet en Jquery | Other | Other |
| JS/JQUERY : Script pour effet rollover changement d'image | Other | Other |
| JS/HTML : methode de verification de formulaire avec du javascript non obstrusif | HTML | Other |
| JS/HTML : api google map | Other | Other |
| JS/HTML : Scrolling menu js | Other | Other |
| OPTIMISATION : | Other | Other |
| PHP : forcer telechargement d'un fichier | PHP | Other |
| JS/JQUERY : Script pour effet rollover changement d'image | Other | Other |
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 >
language: PHP
licence: Other
PHP : forcer telechargement d'un fichier
options: view full snippet • send to code collector
/*la page download.php*/
<?php
$chemin = $_GET['ch'];
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($chemin));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
/*nettoyage des tampon de sortie*/



library
html (48)