Jump to content

point to place outside the root directory


phppaper

Recommended Posts

I'm assuming you're on some sort of setup like:

 

/home/username/www/  - where you have access to the username folder and then also the www folder? In this type of setup, whatever you put in the 'www' directory is your website?

 

well, if you put a directory in your username folder (maybe an "includes" directory so it's not accessible from the web) then you would include like:

 

incldude ('../includes/filename.php');

 

the ../ means go one directory up.

 

If you are wanting to point to another program installed on the server (e.g. imagemagick) then admin would usually tell you the path to point to.

 

hope this helps.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.