Put the files in a folder with a .htaccess file.

Add the following to the .htaccess:

AuthType Basic
AuthName "Verbatim Preview"
AuthUserFile some-password-file
Require valid-user

Read more http://httpd.apache.org/docs/1.3/howto/auth.html

You can even have PHP generate the password file, then you can manage 
access.

Cheers,
Stig

ctx2002 wrote, on 3/07/2009 1:36 PM:
> Hi all:
>
> I want a user to login into our web base system  to view a picture.
> I knew i can store the picture into Database to prevent unauthorized
> access.
>
> but except store pictures into DB, are there other way to do it?
> I really want to just provide a url link, but i do not how to prevent
> unauthorized access
> if i just store picture under web server, every one can see it.
>
> regards,
>
> anru
> >
>   


-- 
Stig Manning
http://www.sdm.co.nz


--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to