Content-Type: application/force-download


Back to programmation.


*headers    (2010-01-05)
Content-Type: application/force-download

Bonjour, je voudrais savoir à quoi correspondent ces headers exactement, quelle est leur utilité à chacun et fonctionnent-ils différemment selon les navigateurs et les serveurs Unix/Linux ou Windows... Bref, sont-ils utiles voire indispensables ou non ?

header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");

header("Content-disposition: attachment; filename=$filename");
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize("./".$row_dir[chemin_fichier]));
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");

header("Expires: 0");


Merci d'avance.


Voir aussi


ficgs
Plus de sources

Vous devez vous enregistrer pour consulter ces sources, vous pourrez alors changer leur ordre en cliquant sur les icones les précédant.



admin
Autres sources

Ce projet est collaboratif, vous pouvez remonter les sources suivantes dans la liste si vous les trouvez utiles.


 force to download a file [Archive] - Dynamic Drive Forums
dynamicdrive > forums/archive/index.php/t 6139
  1. AHHHHH!! Would you mind posting the code you found? or a link to
  2. Herez one I found on the internet function output_file($file,
 Download pdf file using php
en.kioskea > forum/affich 176684 download pdf file using php

 Download header cause zip file to be corrupt [Archive] - CodingForums.com
codingforums > archive/index.php/t 70819

If they are ZIP files shouldn't you use application/x-zip-compressed...

 Force Download Of File
psacake > web/if.asp

' In a Perfect World, Your Client would also have UTF-8 as the...

 PHP Force Download – Keep Track of What’s Going Down
davidwalsh > php force download

I would like to know why you written so many types of headers in...
I am a newbie to php and need to provide some download buttons on a...

 [PhP] Forcer le download. [Résolu]
commentcamarche > forum/affich 2165116 php forcer le download

« Havas Tunisie est fière de travailler pour Tunisie Télécom...
« Les représentants de la génération numérique évoluent plus...

 How to force download dialog box instead of download software - Hot Scripts Forums
hotscripts > forums/php/45628 how force download dialog box instead download sof

How to force download dialog box instead of download...
Take the selected files, tar or zip them, then use the offered code...
Kevin, Do you know how to force download of several files at the...

 PHP Headers Examples - 301,302, Redirects, 404, Javascript, Download, Authentication dialog Headers
phpweby > tutorials/php/35

PHP Headers Examples - 301,302, Redirects, 404, Javascript, Download,...

 PHP Force Download - Keep Up With What's Going Down | PHP Zone
php.dzone > news/php force download keep whats

40 Useful Online Applications for Web Designers and...

 AumHa Forums • Information
aumha > viewtopic.php?f=47&t=35583

 php force-download problem
webmaster talk > php forum/18079 php force download problem

i found the issue, at least the issue that has been stopping it form...
I am having big troubles gettinga file to force...

 How to enable Javascript Force Download - Software Development
forums.techarena > software development/1181804.htm

 HTTP Headers to force file to download rather than auto open
vbulletin > forum/showthread.php?70959 HTTP Headers to force file to download ra

I solved the problem for everyone else who has had as many...
Does anyone know how to do this? Forexample, if i use the...
HTTP Headers to force file to download rather than auto...

 How do you force download in IE6 with PHP? : PHP, Internet Explorer 6, header() Content-Disposition Force Download
experts exchange > Software/Internet Email/Web Browsers/Internet Explorer/Q 2366

How do I recover deleted files, specifiacly deleted...
Double clicking IE icon on Windows XP SP2 desktop...
Hello, Before I begin, here is our current client setup that we...



Response  
 

Guest name   (option)     Register
Please sum : 154 + three  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.