|
Posted by Good Man on 05/15/07 13:23
"Zoe Brown" <zoenaomibrown@N-O-S-P-A-A-Mtesco.net> wrote in
news:ZUg2i.14202$%9.1618@newsfe7-gui.ntli.net:
>
> "Good Man" <heyho@letsgo.com> wrote in message
> news:Xns9930B67EA98F5sonicyouth@216.196.97.131...
>> Good Man <heyho@letsgo.com> wrote in
>> news:Xns9930B5E3AE347sonicyouth@216.196.97.131:
>>
>>> 3) A user *must* be logged in to retrieve the file. If you go with
>>> the file/directory renaming route, your user can bookmark the link
>>> to the secret PDF and pass it on to whomever they wish. With my
>>> proposed system, "streamFile.php" checks to see if the user is
>>> logged in before allowing the file to stream, and for users who
>>> aren't on your system - well, they can't download the file at all.
>>
>> I should mention that the code for "streamFile.php" that I posted had
>> the "is the user logged in?" test removed for brevity :)
>
> thanks for the time you have taken to respond to my questions. It has
> been a great help. am I allowed to cut your code and use a a starting
> point for mine ? Oh and - probably daft question, can I use the smae
> method for all file types ?
of course, use the code, you might want to spice it up a bit with that
'login check' depending on how your access is set up. and yes, you can use
the same method for all file types... good luck!
[Back to original message]
|