J'ai regardé ce bon de code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
<?php
$fichier = 'répertoire/fichier.pdf';
$nomFichier = 'nomFichier.pdf';
$tailleFichier = filesize($fichier);
 
header('Content-Type: application/octet-stream');
header("Content-Length: $tailleFichier");
header("Content-Disposition: attachment; filename=\"$nomFichier\"");
readfile($fichier);
?>
Par exemple, pour un fichier C:\toto.doc, a quoi correspond $fichier et $nomFichier je vois pas très bien??

Merci