On Saturday 19 May 2001 23:18, Dylan Finney wrote:

> I am fairly new to PHP and so far I love it.  One question I have is
> how to call include files outside of their directory without hard
> coding the real path to the file itself.  Is there map path or a

See the include_path ini directive in the config section of the manual

> similar function in PHP? Also when i use readfile() or fpassthru() when
> I echo the result what I assume is the file size is added to the end of
> the line.  i.e.( blah blah blah will produce a 14 at the end of the
> line ) I was curious as to if there is a flag i'm missing that is
> causing them to do that.  Thank you for the help!

You do a
print (readfile ('foo'));
right?

Well, readfile reads the file *and outputs it*, then returns the number 
of chars read. That is passed to print (). So just use
readfile ('foo');

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

I saw God --------- and she was black.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to