Re: Problem sending mail

From: Date: Mon, 30 Aug 2004 22:24:19 +0000
Subject: Re: Problem sending mail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195219@lists.php.net to get a copy of this message
On Tue, 31 Aug 2004 00:03:26 +0200, in php.general tularis@php.net (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: >[user@server /]# cd / >[user@server /]# 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

« previous php.general (#195219) next »