Web Analytics Made Easy -
StatCounter directory files for include only - CodingForum

Announcement

Collapse
No announcement yet.

directory files for include only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • directory files for include only

    I'd like to protect a directory from being accessed, but would like the files in the directory to be able to be included into other files (via php). Is this possible?
    designsbychris.com

  • #2
    Keep the include files in a folder below root - then you can include them, but not access them directly with a web address.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

    Comment


    • #3
      If you can't do that you can always use .htaccess if you are on an Apache web server.
      OracleGuy

      Comment


      • #4
        indeed - or put a blank file called "index.html" in the folder with the other files, so there's no directory listing.
        "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

        Comment

        Working...
        X