TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

how? File protection on PHP

Page: 1 Reply
Mar 6th 2006#172251 Report
Member since: May 6th 2004
Posts: 15
i, now, know how to protect a .php page(through Php5) using session management, the problem is, i don't know how to protect some of my files(except .php) like .html, .swf .jpg etc. If the user got the direct link of that particular file, i want them to see "You need to login to view this image/file!" on their screen, .htaccess is very complicated to use since i am using a mysql db.

any ideas?

Thanks!
Reply with Quote Reply
Mar 6th 2006#172252 Report
Member since: Mar 18th 2001
Posts: 6632
Depending on your host, most control panels for your hosting account will have an easy point-and-click way to add the .htaccess protection to any folder. My host uses cPanel and I can do it really easily.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum