I have a file containing password on the server. I want to protect it from being accessed by vistors, but I need to access in my PHP scripts. What should I do? I tried to change the atrribute of that file to make it not accessible from vistors, but, my scripts can't, either.![]()





If possible I'd suggest storing the file abive webroot but it's really personal preference, chances of PHP crashing and not taking Apache with it are small.

Bookmarks