Hey Martin, could you send me the syntax for attaching a file?  I'll be
doing something like this next week and this would come in handy.

Thanks,

-Ed


> -----Original Message-----
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 17, 2002 5:58 PM
> To: 'Fargo Lee'; [EMAIL PROTECTED]
> Subject: RE: [PHP] How do I hide download link ...
> 
> 
> Have a page that checks the user's authentication
> 
> if they're "invalid" then display an error msg and exit the script
> 
> otherwise, send the header command(s) for attaching a file 
> (can't remember
> the exact syntax right now)
> 
> read the file from somewhere that's not accessable from the 
> web and spit it
> out to the browser
> 
> HTH
> Martin
> 
> 
> -----Original Message-----
> From: Fargo Lee [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 6:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How do I hide download link ...
> 
> 
> Hi, my customers go through a password authentication to 
> access a link on my
> site to download a file. I want to prevent the distribution 
> of the location
> of this file on my server by making it hidden. Is there any 
> php function(s)
> that could assist in doing this?
> 
> All I can think of so far is storing the original file in a 
> hard to guess
> directory, when a authenticated customer goes to download it, 
> send them to a
> script that copys the original file to a temp directory, they 
> download the
> file in the temp directory and then run a cron every so many 
> minutes to
> clear out the files in the temp directory.
> 
> If anyone has any ideas, examples or a way to improve on what 
> I came up with
> please respond. Thanks!
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
 
****************************************************************************
This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.                                                                       

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to