Re: Downloading a file

From: Date: Sat, 03 May 2003 12:16:32 +0000
Subject: Re: Downloading a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146258@lists.php.net to get a copy of this message
I forget the exact specifications off my head, but you can write a PHP script to send out a header that basically says download this file and save as _____. Check out header() for more info (The type to just download is octel/stream i /think/) -Dan Anderson On Sat, 2003-05-03 at 07:52, shaun wrote: > Hi, > > I have the following link on my page: > > <p>click <a href="/files/test.txt">here</a> to view the > document</p> > > When I click on this link it opens the file in the same window, how can I > make sure that the link opens a dialog box asking me if I want to download > the file? > > Thanks for your help > > >

« previous php.general (#146258) next »