PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi friends,
please tel me how can i user can be authenticated by user name and password stored in MySQL database before he is allowed to download a file from a webserver, actually i want photos of diffrent users to be stored in diffrent places on web server and no one can download that photos using a direct url, each user should acces only his own photos and hense no download should be allowed without username and password auhentication of the downloader.
i would be greatful if you can provide me with useful links or sample code
Place the files outside of a web accessible location and/or place .htaccess files that prevent requesting the files (or possibly an interception.) Use a script to request them.