toplisek
02-06-2009, 10:46 AM
to specify the PHP include path need help.
php_value include_path ...
How to use this if you have some sample with all code.
php_value include_path ...
How to use this if you have some sample with all code.
|
Click to See Complete Forum and Search --> : How to change PATH? toplisek 02-06-2009, 10:46 AM to specify the PHP include path need help. php_value include_path ... How to use this if you have some sample with all code. Lazer 02-06-2009, 03:01 PM Hi. First read this article: http://forums.whirlpool.net.au/forum-replies-archive.cfm/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. toplisek 02-07-2009, 04:45 AM Hi thank you. this one of the best post as many posts did not solve this. $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 store PATH in variable? How to make code like on apache on the same server not application within folders as in variable $dir1? toplisek 02-09-2009, 09:14 AM 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. webdeveloper.com
Copyright WebMediaBrands Inc., All Rights Reserved. |