Shared file in /home directory. How to set its permissions?

Status
Not open for further replies.

dude

New Member
Hello

I hope someone can help me with this.

I am creating a number of websites which will use a shared script, i.e. a PHP script containing a number of shared functions.

I am thinking of putting this shared script in /home.

Does anyone know how I can make this script accessible by all the different websites?

For example, in each website's index.php page I can include "include $DOCUMENT_ROOT/../../shared_script.php".

What permissions do I need to set on /home/shared_script.php to get this to work?

Thanks
 

Forbairt

Teaching / Designing / Developing
I think chmodding it to 644 should do the trick ?
 
Status
Not open for further replies.
Top