On Tue, Jan 23, 2001 at 05:13:24PM -0800, bryan wrote : 
> I have a site where people have to pay for the pictures.  He is
> a professional photographer and does not want people stealing
> his work.  When they download and image, they pay for it.  The
> problem with that is, if I have images named 001.jpg, 002.jpg,
> people can type that into the URL and get the other image
> without paying for it.  Is there a way to rename a file once
> clicked on to download to eliminate this from happening?
> So, the user clicks on the image, called from the database,
> have it renamed, and then delete it from the database, so they
> never see the real filename...

        Store your images _outside_ you document root folder of
your webspace and you a php-script to pass it to the client. This
script checks for cookies, session or whatever and only outputs
the right image when a valid user.


Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail:         [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to