Only through include |
Only through include |
CodeKing |
Jan 27 2008, 03:27 AM
Post
#1
|
Advanced Member Group: Members Posts: 175 Joined: 12-September 06 Member No.: 118 |
Is there any way to edit the .htaccess file to only allow certain files to be used via PHP include or require, but not from a browser?
|
Brian Chandler |
Jan 27 2008, 03:56 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
If I understand you correctly - you want it so the included files (say "password.inc") can't be read from a browser?
Simply make the (included) file inaccessible. Either set Apache not to show it, or (simpler) put the include files in some directory outside the document tree. |
Lo-Fi Version | Time is now: 25th April 2024 - 12:26 AM |