ahh... I see one thing, I should be using attachment rather than 
inline...

let me see if that helps :)
------------- Forwarded message follows -------------

Hi Everyone --

I'm almost there with my PDF download application and everything is 
working great except that instead of downloading the PDF, it's printing 
it out on the screen like so:@8(”µrœ;q®ª7èLöœy¥•&†Qëñq¶4±jž½ç|æ9ÚÄ 
V³)[EMAIL PROTECTED]&»A)/ÇÙgº>'K‚óÈtÕ;\ú” 
Ó¥$ÕºF½ZUnÀÜå˜(4TŒ%)뫔ƒ0C&¯”阤Z£“i˜¿óœ8¦Úbx‘ƒE¡ÁÁBÑ;…
ú¯›¿P¦ÞÎӓ̹žAü om?çW= €x¯Íú·¶Ò-Œ¯Àòæ[›Ëû0ñ¾¾øÎ}ø¦y)
7ta¾¾õõõ>[EMAIL PROTECTED]&¯®ª6ê etc.

Here is the code that I have right now...something is wrong.  At one 
point I got it to give me the file save/download dialogue box but with 
the pagename not the filename...

//=======

$filename="333.pdf";
$filesize=filesize($filename);
header("Content-Type: application/pdf");
    header("Content-Length: ".$filesize);
    header("Content-Disposition: inline; filename=$filename");
    header("Content-Transfer-Encoding: binary");
$file_contents = readfile($filename);
print $file_contents;

//======

-- Kristina 

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php




_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to