Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 03:06, Todd Cary wrote: > Jason and Daniel - > > Maybe this is a cop out, however it is working. Comments welcomed.. > > > >print(''); > ?> > Sendfile > > ... Hmm, but if the file was a recognised type then this would just display the file in yo

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason and Daniel - Maybe this is a cop out, however it is working. Comments welcomed.. '); ?> Sendfile ... -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 02:16, daniel wrote: > Todd- > > > When I use the following code, I am not asked if I want to Save the file > > or Open it. Instead, the contents of the file are displayed in the > > browser. I am sure that I have missed something simple!! > > > > Todd > > > > > $len

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 02:23, Jason Wong wrote: > In general, if the file is on disk then simply using: > > header("Location: http://www.domain.com/downloads/myfile.exe";); > > would work. Whether the user is asked to "Save or Open..." depends on the > browser setting. > > If you're using a

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 01:35, Todd Cary wrote: > Jason - > > I had looked it up in the manual, but I am not sure of what to put into > the area /* ... output pdf file ... */ > > Any help is appreciated > > Todd > > > > If you want the user to be prompted to save the data you are sendi

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
Todd- > When I use the following code, I am not asked if I want to Save the file > or Open it. Instead, the contents of the file are displayed in the > browser. I am sure that I have missed something simple!! > > Todd > >$len = filesize("test.pdf"); > header("Content-type: application/p

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Daniel - When I use the following code, I am not asked if I want to Save the file or Open it. Instead, the contents of the file are displayed in the browser. I am sure that I have missed something simple!! Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
Todd- > I had looked it up in the manual, but I am not sure of what to put into > the area /* ... output pdf file ... */ > > Any help is appreciated > > Todd > > > > 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

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason - I had looked it up in the manual, but I am not sure of what to put into the area /* ... output pdf file ... */ Any help is appreciated Todd 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

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 01:00, Todd Cary wrote: > Jason - > > <<< > Then in your file download.php, have a single statement using the > header() > function to redirect to the file that is to be downloaded. > > > What is the syntax for the header() function? Manual? Lots of good

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason - <<< Then in your file download.php, have a single statement using the header() function to redirect to the file that is to be downloaded. >>> What is the syntax for the header() function? Many thanks... Todd -- Dr. Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Thursday 24 January 2002 21:33, Todd Cary wrote: > When the surfer presses a button, I want a pre-determined file to be > downloaded by the surfer - the box to come up on the surfer's browser: > "Open or save...". Many ways to do this, one of which could be: Then in your file do

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
When the surfer presses a button, I want a pre-determined file to be downloaded by the surfer - the box to come up on the surfer's browser: "Open or save...". Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] How can the Surfer download

2002-01-23 Thread Jason Wong
On Thursday 24 January 2002 13:27, Todd Cary wrote: > What is the syntax to give the surfer an opportunity to download a file? Please elaborate. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Kitchen activity is highlighted. Butter up a friend. */ -- PHP General Mailing List