I'm using include() and require() a few times in my website to include documents that reside on another web server (where my CMS resides).
Normally I use the extension .inc.php to indicate my include files. The cool thing about the .php extension is of course that no one can read the include files when they are accessed directly from a browser (they're parsed as php).
But because I'm including these files from a remote webserver, I can't use the .php extension. Because if I do, the include files are parsed as php before they're included. So I have to use the extension .inc
The bad thing now is that everyone can see the source code of these .inc files when accessed directly from their browser. So I want to protect these files, but I don't know how. Htaccess is no option because if i use that, i can't include the files anymore.