zhq Posted December 20, 2006 Share Posted December 20, 2006 Hi All,when I intend to open a .pdf file in a pop-up window, a blank pop-up window appears and also a 'File download - security warning' window comes out showing: 'unknow file type', save or cancel. I have the hearder - 'Content-Type: application/pdf' in my php code and it works previously. The web server is Xitami and OS is Windows XP. Any help is greatly appreciated. Thanks, zhq Quote Link to comment Share on other sites More sharing options...
Cep Posted December 20, 2006 Share Posted December 20, 2006 You might not have Adobe Reader installed on that machine or the file type for pdf has been altered. The file download warning is part of XP SP2. Quote Link to comment Share on other sites More sharing options...
zhq Posted December 21, 2006 Author Share Posted December 21, 2006 Hi,Thanks for your help. I have Adobe Reader 7.0.7 installed on my PC. I don't know how the file type is altered. Please kindly advise me what I should do next.Thansk a lot.zhq Quote Link to comment Share on other sites More sharing options...
trq Posted December 21, 2006 Share Posted December 21, 2006 [quote]I have the hearder - 'Content-Type: application/pdf' in my php code and it works previously.[/quote]Post your code. Quote Link to comment Share on other sites More sharing options...
zhq Posted December 21, 2006 Author Share Posted December 21, 2006 Hi,forward.php and download_main.php are attached here. Thanks. zhq[attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
trq Posted December 21, 2006 Share Posted December 21, 2006 Just post the relevent code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.