Re: Re: [SOLVED] Beginner Q How to load externally defined function
| From: | John W. Holmes | Date: | Mon, 26 Jan 2004 19:47:19 +0000 |
| Subject: | Re: Re: [SOLVED] Beginner Q How to load externally defined function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175687@lists.php.net to get a copy of this message | ||
Paul Furman wrote:
You can also define your include dir in php.ini or if running as an apache mod in an .htaccess file. ------------ I had luck with the include approach: include 'c:/_Paul/web/phplib/utilities/dirfile.php'; echo scandir(); I guess it'd be more wise to put in my php.ini to save a lot of trouble.As for your php.ini, you put a path for include files that PHP will look in by default. So if you put 'c:/_Paul/web/phplib/utilities' as an include path, you'll be able to just use include 'dirfile.php'; instead of giving the complete path. Whether this is useful or not depends on you. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com