+ Reply to Thread
Results 1 to 3 of 3

Thread: how to include a file

  1. #1
    piorivas is offline x10Hosting Member piorivas is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    3

    how to include a file

    How do i include a file/folder that is outside the public_html folder. a folder that is not directly accessible from the web.

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: how to include a file

    Well, in PHP, you could do this:

    PHP Code:
    <?php
    include('/path/to/file/'); //file doesn't have to be in /home/user/public_html/. Could be in /home/user/asdf/
    ?>
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    piorivas is offline x10Hosting Member piorivas is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    3

    Re: how to include a file

    thanks

+ Reply to Thread

Similar Threads

  1. 500 Internal Server Error
    By cgrim29588 in forum Free Hosting
    Replies: 2
    Last Post: 03-17-2009, 02:54 PM
  2. PHP Include, file help!
    By stillDOLL in forum Programming Help
    Replies: 8
    Last Post: 10-07-2008, 04:26 AM
  3. Server Time-Zone To Local Time-Zone
    By rockee in forum Tutorials
    Replies: 4
    Last Post: 06-02-2008, 09:58 AM
  4. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  5. include html from another file?
    By galaxyAbstractor in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 11-17-2007, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers