xiao Posted December 14, 2007 Share Posted December 14, 2007 I have a logs.txt file. How do I make sure only a logged in user (on my website) can access it? Link to comment https://forums.phpfreaks.com/topic/81725-solved-make-files-only-accessible-by-php-script/ Share on other sites More sharing options...
Caesar Posted December 14, 2007 Share Posted December 14, 2007 Put it in a folder one level above the public folder....you'll be able to access it in you PHP...but people won't be able to access it directly. Link to comment https://forums.phpfreaks.com/topic/81725-solved-make-files-only-accessible-by-php-script/#findComment-415057 Share on other sites More sharing options...
xiao Posted December 14, 2007 Author Share Posted December 14, 2007 ok, thanks Link to comment https://forums.phpfreaks.com/topic/81725-solved-make-files-only-accessible-by-php-script/#findComment-415061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.