Jump to content

[SOLVED] How to add to path


ryy705

Recommended Posts

Hello,

 

I want to add /home/ryy705/Sites/mysite/include to my webroot so I can access home/ryy705/Sites/mysite/include/file.php  with a simple include('file.php');

 

I am trying to do this by placing a .httaccess file with the following content in the webroot.

php_value include_path ".:/home/ryy705/Sites/mysite/include"

 

But when call include/file.php from mysite/  I get following err message:

Fatal error: require_once() [function.require]: Failed opening required 'file.php' (include_path='.:/home/ryy705/Sites/mysite/include')

 

What am I doing wrong?  I thank you in advance.

 

Link to comment
https://forums.phpfreaks.com/topic/128439-solved-how-to-add-to-path/
Share on other sites

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.