Page 1 of 1

email link to a file for download ... security

Posted: Mon Oct 02, 2006 10:26 am
by purpletang
hi,

I want to be able to email people a link when they purchase an image/file yet not give the direct path.

As anyone can them download it etc.

I want to write a website to sell pictures, and it's this last bit I need to know.

many thanks

tony

Posted: Mon Oct 02, 2006 10:31 am
by hawleyjr
First off, welcome to the forum.

Yes, this is fairly simple to do. First you need to put the image outside of the document root. Then create a PHP script to call the file and load it to the screen using the header() We can get into more detail if you need help.

Posted: Mon Oct 02, 2006 10:43 am
by purpletang
hawleyjr wrote:First off, welcome to the forum.

Yes, this is fairly simple to do. First you need to put the image outside of the document root. Then create a PHP script to call the file and load it to the screen using the header() We can get into more detail if you need help.
cool thanks :o) I look at http://www.php.net for Header() and there are examples ( as usual ) for downloading of a file.

many many thanks

and yes, I'm new :D

tony