to specify the PHP include path need help.
How to use this if you have some sample with all code.PHP Code:php_value include_path ...
Printable View
to specify the PHP include path need help.
How to use this if you have some sample with all code.PHP Code:php_value include_path ...
Hi.
First read this article:
http://forums.whirlpool.net.au/forum...fm/545471.html
the last entry is:
$dir1 = '/websites/bla/blah';
$dir2 = '/classes/class1';
set_include_path($dir1.';'.$dir2.';'.get_include_path());
DO NOT try URL like HTML: '/folder/file.php' it will NOT work.
only '../../folder/file.php'
GoodLuck.
Hi thank you. this one of the best post as many posts did not solve this.
How to store PATH in variable?PHP Code:$dir1 = '/en-GB/service/training/index_serv.php';
$dir2 = '/classes/class1';
set_include_path($dir1.';'.$dir2.';'.get_include_path());
set_include_path(
'/application' . PATH_SEPARATOR . '/library' . PATH_SEPARATOR . get_include_path()
);
How to make code like on apache on the same server not application within folders as in variable $dir1?
have tried to include file with your code like:
$dir1 = '/en-GB/service/training';
set_include_path($dir1 . PATH_SEPARATOR . get_include_path());
include('file.php');
It does not include my file.