Menu
I am a PHP n00b, so please excuse me if my questions are too silly.
Let’s say I want to maintain security through obscurity. I want to keep some include files, say, “header.inc” and “footer.inc” and include these files in all the pages. But I don’t want the viewer to see the contents of the “header.inc” and “footer.inc” even if they try to access the files directly. What should I do to protect these files from being accessed by users.
Another question, what’s the difference between include(“footer.inc”), include(‘footer.inc’) and include ‘footer.inc’ ?
Thanks in advance!