Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-22 Thread D. D. Brierton
Following on from my mail yesterday, here are the results of testing Billy's multipart content method on Windows browsers (Windows 98 to be precise): * IE 6.0 displays the boundary markers and content-type headers inline and also the contents of myfile.foo instead of saving

[PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
The result I'm looking for is like the CGI script at netscape for downloading NS6 - it takes you to a page which says aomething like The download should start automatically and then the download begins. I'm having trouble figuring out how to do this in PHP - I suspect through ignorance of the

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Robert Cummings
D. D. Brierton wrote: The result I'm looking for is like the CGI script at netscape for downloading NS6 - it takes you to a page which says aomething like The download should start automatically and then the download begins. I'm having trouble figuring out how to do this in PHP - I suspect

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread 1LT John W. Holmes
... - Original Message - From: D. D. Brierton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 3:37 PM Subject: [PHP] How to simultaneously send HTML *and* start download? The result I'm looking for is like the CGI script at netscape for downloading NS6 - it takes you

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Billy S Halsey
Hi, Here's the shell of a script I wrote a while back to do exactly what you want: ?php header(Content-Type: multipart/mixed; boundary=\-Boundary-12399\); print ---Boundary-12399\r\n; print Content-Type: text/html\r\n; print \r\n; // Your HTML code goes here print \n; print

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread Stuart Dallas
On 21 May 2002 at 20:37, D. D. Brierton wrote: The result I'm looking for is like the CGI script at netscape for downloading NS6 - it takes you to a page which says aomething like The download should start automatically and then the download begins. I'm having trouble figuring out how to do

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
On Tue, 21 May 2002 20:57:46 +0100, 1lt John W. Holmes wrote: Use PHP to write a META-REFRESH to the file that's going to be downloaded, or a php file that controls the download. Basically, you show them an HTML page that says the download will begin, the META tag refreshes after X seconds

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
On Tue, 2002-05-21 at 21:02, Billy S Halsey wrote: Here's the shell of a script I wrote a while back to do exactly what you want: Thanks, Billy! That's really helpful. I'm curious as to the significance of the number 12399. Is this just a random number used as a separator, or does it indicate

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread D. D. Brierton
I just thought that members of this list following this thread might like to know the results of my experimenting with this technique: All tests on Linux (testing on Windows 98 tomorrow): * Mozilla 0.9.9 worked perfectly. * Netscape 4.78 appeared to work but downloaded file was