Re: require_once('') relative path problem
| From: | Jordi Canals | Date: | Thu, 22 Apr 2004 23:55:03 +0000 |
| Subject: | Re: require_once('') relative path problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184321@lists.php.net to get a copy of this message | ||
Curt Zirzow wrote:
* Thus wrote Sheeraz fazal (ng@iwerx.vertextek.com):If all your included files are in the same directory, you can write on them something like (I don't have my code at hand now): set_include_path(get_include_path() .':'. dirname(__FILE__)); Should work. Regards, Jordi.Hi, I have problem in undertanding the require_once/require/include/include_once functionality. Php files in my project are located in different folders. Some folders have common files for other files. And file layout is like thisInclude files relative to your include_path php.ini (or similar): include_path = /home/user/phpinclude:/usr/local/lib/php if you do not have access to your PHP.INI ... take a look at the functions set_icnlude_path() and get_include_path()