On Tue, 31 Aug 2004 00:03:26 +0200, in php.general [EMAIL PROTECTED] (M.
Sokolewicz) wrote:

>that would depend from which place you run the script.
>file_get_contents("text.inc") will be looked for in:
>1. the current working directory
>2. the included dirs

Remember though that for 2), it looks in "include_path relative to the
directory of current script." (from documentation for include), and .
is usually included in include_path

For:

>[EMAIL PROTECTED] /]# cd /
>[EMAIL PROTECTED] /]# php -q /var/www/html/scripts/mail.php
>then you're actually working in /, so it's looking for "text.inc" in:
>/text.inc and in all include-paths.

... it would also check /var/www/html/scripts/text.inc

-- 
- Peter Brodersen

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

Reply via email to