* Thus wrote Sheeraz fazal ([EMAIL PROTECTED]):if you do not have access to your PHP.INI ... take a look at the functions set_icnlude_path() and get_include_path()
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 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