How would I go about protecting just some of the files in the same directory instead of protecting the whole directory. Is is even possible, if so can someone enlighten me Thanks
Yes, it is possible, but it is painfull. Try to use php_include method of protection, if it possible.
php_include works pretty well for .php files When I try to access the protected page with like this http://www.thesite.com/protected.php, it correctly shows the login page. but for some reason when i took out the www. at the front http://thesite.com/protected.php is suddenly accessible without logging in. Did I do something wrong