Please reread the documentation found here: http://www.php.net/header
It has a pdf file as an example, modify according to your needs. Regards, Philip On Wed, 4 Dec 2002, Elkan wrote: > Couldn't you set the Mime-Type on the server for the correct extenstion? > > Leif K-Brooks wrote: > > > Link them to a page like this to download the file: > > > > <?php > > header("Content-type: application/octet-stream"); > > //Code to display file > > ?> > > > > Dara Dowd wrote: > > > > >Hello, > > >I'd like a user to be able download a file from a file server on my LAN. > > > > > >Using <a href="file://server/directory/filename"> works ok, but this simply >displays the file in the browser and I want to force the download dialog box to >appear. > > > > > > > > >So now i have <a href="download.php?file=filename">, and i want to do something >like > > >fopen("file://server/directory/filename",rb") but i just get an invalid argument >warning. > > >Am i on the right track?Is there a way around this? > > > > > >Cheers, > > >Dara > > > > > > > > > > > > > > > > > > > -- > > The above message is encrypted with double rot13 encoding. Any unauthorized >attempt to decrypt it will be prosecuted to the full extent of the law. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php