Spekta Posted September 22, 2008 Share Posted September 22, 2008 I've made my own admin panel using MYSQL and php. Im just wondering how i would make the files in the admin panel (like info pages and stuff) only viewable to admin, ive tried chmodding them to 600 but when in the admin panel it says access denied. Any help is greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/125271-admin-files-help/ Share on other sites More sharing options...
Garethp Posted September 22, 2008 Share Posted September 22, 2008 Look into something called .htaccess. It's a powerful way of assigning access to certain folders and files Link to comment https://forums.phpfreaks.com/topic/125271-admin-files-help/#findComment-647545 Share on other sites More sharing options...
ratcateme Posted September 22, 2008 Share Posted September 22, 2008 chmod on effects the local system and what apps can access them so by making them 600 php can no longer open them to run them you need to make a user system and have some code that check to see if the logged in user is admin then they can view the files Scott. Link to comment https://forums.phpfreaks.com/topic/125271-admin-files-help/#findComment-647547 Share on other sites More sharing options...
waynew Posted September 22, 2008 Share Posted September 22, 2008 Look up sessions and PHP redirect. Link to comment https://forums.phpfreaks.com/topic/125271-admin-files-help/#findComment-647562 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.