Most of downloading script is not working in ie and rest of all other major browser. But this script will be working fine in all major brouser ?
Please have a look on below code of header its working fine on all major browser.You just need to copy the enire below code and paste it in your php file .
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: $mtype");
header("Content-Disposition: attachment; filename=\"".$xyz["example"]."\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . $fsize);
Method of uses : Replace the $xyz["example"] variable with your variable of your file location which u want to be download....
If you like this post please don't forgot to notify me to post a comment .
Happy Coding Guys :)
Please have a look on below code of header its working fine on all major browser.You just need to copy the enire below code and paste it in your php file .
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: $mtype");
header("Content-Disposition: attachment; filename=\"".$xyz["example"]."\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . $fsize);
Method of uses : Replace the $xyz["example"] variable with your variable of your file location which u want to be download....
If you like this post please don't forgot to notify me to post a comment .
Happy Coding Guys :)
I'm happy that I found your blog while searching the internet for ideas and good content. It's very informative and the quality of your posts is excellent.
ReplyDeletewebsite development company in New York
Thank you so much for your valuable comment. Keep visit again.
ReplyDeleteChears :)