Re: How do you make a temporary download page?
| From: | Jason Wong | Date: | Fri, 09 May 2003 13:43:36 +0000 |
| Subject: | Re: How do you make a temporary download page? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147011@lists.php.net to get a copy of this message | ||
On Friday 09 May 2003 21:29, Brian Dunning wrote:
> I want to make a temporary download page, whereby someone completes
> their credit card transaction and then is sent to a URL to download
> their product, and the URL is valid for 60 minutes or 3 attempts.
> Standard stuff.
>
> My background is in Lasso, not PHP. In Lasso they'd get a URL like:
>
> http://www.domain.com/download.lasso?id=sdhf63hgf
>
> which queries the db, and if it's still valid, the response is:
>
> [Header]
> HTTP/1.0 200 OK
> Server: Lasso 6
> Content-Type: application/pdf
> Content-Disposition: attachment; filename="desiredfilename.pdf"
> [/Header]
> [Include_Raw: '/actualpathname/filenameonserver.abc']
>
> Can it be done the same way in PHP, or do you have to use symbolic
> links, cron jobs, etc.? Thanks,
You can do it the same way in PHP. As long as you understand the principle
then it's pretty easy to implement in PHP. Search archives for "expiring
links" for a recent thread on this matter.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I don't make the rules, Gil, I only play the game.
-- Cash McCall
*/