How about setting up symbolic links on the server in a tmp directory.
You could use the values from your database table to create the sym
links. Have the sym link be the token name and then have it linked to
the real file name. You could then have a cron job running to clear the
sym links at set intervals. I do this for a Royalty Free stock site and
it works great.
Chris
On Mar 21, 2005, at 7:08 PM, JoShQuNe ((TR)) wrote:
--- Richard Lynch <ceo@xxxxxxxxx> wrote:
On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said:
Hi, i want to add my site a more specific download system. The
redirecting
is now done by directly
giving the path of the file to variable. I want to do it over an id
number.
(now: dl.php?rel=/files/somefile.zip, i want: dl.php?id=64b3j283)
The file
path and id is read
from mysql table. System is now; it matches from table and lets
visitor to
download but putting
this kind of path is something useless. Download script is just used
for
counting the hit but for
example i want to rename the file while giving to visitor instead of
letting user to learn where
it is stored and its real name,
The_Justice_by_Someone_MyDomain_com.zip
looks like what i want to
have. I tried this system with header("Location: ......"); but it
just
opened a new page and
nothing happened else. For example if visitor uses FlashGet i want
him to
see just an address
which doesnt involve the real path and name. If any body can help me,
please.. Thanx a lot..
--
Chris Bruce
chris@xxxxxxxxxxxx
Idextrus E-Business Architects
http://www.idextrus.com
3282 Wilmar Cres.
Mississauga, ON
L5L4B2
CA
905.828.9189 South Office
705.361.0331 North Office
Skype: callto://chrisrjbruce
****************************************************************
This e-mail and its contents are privileged, confidential and
subject to copyright. If you are not the intended recipient,
please delete this e-mail immediately. Any unauthorized use
or disclosure of the information herein is prohibited.