How do you make a temporary download page?

From: Date: Fri, 09 May 2003 13:29:59 +0000
Subject: How do you make a temporary download page?
Groups: php.general 
Request: Send a blank email to php-general+get-147008@lists.php.net to get a copy of this message
Hi folks, 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, - Brian

« previous php.general (#147008) next »