Toby,
Look at this page: http://www.php.net/manual/en/function.header.php (excerpt
below)
If you want the user to be prompted to save the data you are sending, such
as a generated PDF file, you can use the Content-Disposition header to
supply a recommended filename and force the browser to display the save
dialog.
<?php
// We'll be outputting a PDF
header("Content-type: application/pdf");
// It will be called downloaded.pdf
header("Content-Disposition: attachment; filename=downloaded.pdf");
// The PDF source is in original.pdf
readfile('original.pdf');
?>
Note: There is a bug in Microsoft Internet Explorer 4.01 that prevents
this from working. There is no workaround. There is also a bug in Microsoft
Internet Explorer 5.5 that interferes with this, which can be resolved by
upgrading to Service Pack 2 or later.
-Dash
-----Original Message-----
From: toby z [mailto:blue_myth_1@;yahoo.com]
Sent: Friday, November 01, 2002 3:45 AM
To: php hlp list
Subject: [PHP-WIN] file download .......
hi guyz
im tryin to let a user download a file
when he clicks on the link a open from location or
save to disk dialog should appear
n i dont know how to do this
can n will sumbdy plz help
thnx a million
toby .....
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php