KirstyScott Posted December 29, 2008 Share Posted December 29, 2008 I just created a website and want to set some permissions to "admin only" files, what are the steps in order to make these files only accessable, viewable by admins. These files will be located inside the Htdocs on C:\xampp\htdocs\ADMINFILESHERE Ty and will appreciate help on this Link to comment https://forums.phpfreaks.com/topic/138713-how-to-set-permissions-in-htdocs/ Share on other sites More sharing options...
gevans Posted December 29, 2008 Share Posted December 29, 2008 Are these just random files such as .pdf and .doc (examples) or are you talking about pages viewable in a web browser? Link to comment https://forums.phpfreaks.com/topic/138713-how-to-set-permissions-in-htdocs/#findComment-725263 Share on other sites More sharing options...
KirstyScott Posted December 29, 2008 Author Share Posted December 29, 2008 PHP files, but these files aren't suppose to be public files, files like config.php on so on Link to comment https://forums.phpfreaks.com/topic/138713-how-to-set-permissions-in-htdocs/#findComment-725283 Share on other sites More sharing options...
gevans Posted December 29, 2008 Share Posted December 29, 2008 Do you have a use management system in place? Link to comment https://forums.phpfreaks.com/topic/138713-how-to-set-permissions-in-htdocs/#findComment-725284 Share on other sites More sharing options...
redarrow Posted December 29, 2008 Share Posted December 29, 2008 Look the htdocs is for you to add directory's for your php scripts, When you design a project directly in htdods it up to you how you setup your php scripts. if you don't want users to be able to get into a certon script .name then you need to add security to that file.php I have setup Apache so that only users, that no the names off my dir/files can see them, else there not shown, you get a 404 error. read this m8. http://www.golivecentral.com/pages/txttut/htacc.shtml Link to comment https://forums.phpfreaks.com/topic/138713-how-to-set-permissions-in-htdocs/#findComment-725287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.