On Sat, 6 Apr 2002, Dean Ouellette wrote:

> Newbie who has my include working with this
> <?php
> include ('includes/footer.php');
> ?>
>
> Problem is when I try to use this with files in other directories I use
> <?php
> include ('/includes/footer.php');
> ?>
>
> Then get file cannot be found.  Is there a way to do this?

You have to prepend the directory that the web server knows, such as
/usr/local/apache/htdocs/includes/footer.php


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

Reply via email to