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

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



Reply via email to