Thread: Download portal
View Single Post
Old 07-03-2004, 06:37 PM   #1 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
Download portal

Newbie question. . .

Here's what I want to do: I have a set of files I want to made available for download, but I want to prevent direct linking to them by forcing a query to go through a "gatekeeper", some php file that checks to make sure the request is valid and from my site. While I can do the checking no problem, I'm trying to figure out how to initiate the download without actually making the files available via HTTP (somehow hiding the URL would work, although I'd prefer to use a .htaccess to restrict access to only localhost). I could do this with JSP, but I'm not familar enough with PHP functions; is there some way to push out a file in PHP?
__________________
GitS
Belisarius is offline   Reply With Quote