Re: Re: file downloads (again)
| From: | Justin French | Date: | Tue, 18 Jun 2002 01:28:19 +0000 |
| Subject: | Re: Re: file downloads (again) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102632@lists.php.net to get a copy of this message | ||
on 17/06/02 9:08 PM, Jason Wong (php-general@gremlins.com.hk) wrote:
> Those usually work by using a META tag to refresh to the actual download
> script. View source of said page to find out how it works.
Hmmm, I can't see the refresh in the HTML, but that's okay, it sounds like a
good plan, EXCEPT that the URL I refresh to is now in plain view, and not
necessarily hidden from the user.
What would be nice is if I could incorporate my sessions into this somehow.
I guess the refresh link could be a download.php?song=blah link, where if
the session is there, and the user is validated, they get the MP3 pushed
through. The only catch there is:
a) save as may not work (download file to disk)
b) if it does, the file will be called download.php, not something.mp3,
which might mess with some systems
Any thoughts?
Justin French