Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 7th, 2008, 08:46 AM
Authorized User
 
Join Date: Nov 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Snowby
Default Face problem while downloading PDF file with IE 6

Dear Friend,


I face problem while downloading PDF file with IE 6.

When I click on PDF icon it will asked for Save, Open, Cancel popup window option.

If I save file on disk then it is with IE 6. But when I click on Open it will display Error while opening PDF file after few second (temporary download).

However code will work fine with IE 7. Is anybody help me ?

$filename = $first_name . "_" . $last_name . "_" . $row_data['ResumeID'] . ".pdf";
$filepath = ORIGINAL_PDF . $first_name . "_" . $last_name . "_" . $row_data['ResumeID'] . ".pdf";

header('Content-Length: ' . strlen($row_data['ResumeInfo']));
header("Content-type: " . $row_data['ResumeType'] . "");
header("Content-Disposition: attachment; filename=$filename");
readfile($filepath);


Thanking you,


Snowby Dave

 
Old April 23rd, 2008, 02:12 AM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a typical yet common problem with IE6.

Try to change your browser settings: Tools -> Advanced -> Browser

Just check the option "Always Send URL's as UTF8" and restart the browser.






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem downloading wrox united.zip file forry01 ASP.NET 2.0 Basics 0 October 26th, 2006 10:48 AM
Zoom, PDF file problem in VB6 naveed77 Beginning VB 6 0 July 29th, 2006 08:48 PM
Problem with SendKeys while downloading a file desperado1306 Excel VBA 0 May 25th, 2006 12:05 PM
Face problem to use DLL created using VB in VC++ chirag_chauhan Beginning VB 6 1 January 17th, 2005 10:56 PM
Downloading PDF mbs31 Apache Tomcat 1 September 20th, 2004 05:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.