talor123 Posted June 26, 2008 Share Posted June 26, 2008 i have written up a login/register script in php, register makes new directorys/files in the folder "Data/account_info", and login script reads those files to verify password and user(i use fread to get info from files) my problem is that if i want the script to work, "Data/account_info" has to be 'viewable' for people viewing my website... i want it so if they try to access the folder they get denied but also i want it so my login/register script can still have access for reading/writing files to "Data/account_info"... so basicly no one can view "Data/account_info" but scripts can access it....... if you want my script just ask thank you Link to comment https://forums.phpfreaks.com/topic/112001-php-file-restrictions/ Share on other sites More sharing options...
ratcateme Posted June 26, 2008 Share Posted June 26, 2008 are you running apache?? you could use .htaccess http://httpd.apache.org/docs/2.2/howto/htaccess.html Scott. Link to comment https://forums.phpfreaks.com/topic/112001-php-file-restrictions/#findComment-574917 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.