Curt Zirzow wrote:

* Thus wrote Sheeraz fazal ([EMAIL PROTECTED]):

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 this


Include 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()

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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to