Re: [PHP] Re: Newbie and includes

2002-04-06 Thread Rasmus Lerdorf

But you will most certainly need quotes.

And no, you don't need the ()'s but it works for exactly the same reason
that (1)+(2) is a valid expression with unneccesary brackets.

-Rasmus

On Sun, 7 Apr 2002, G-no / |{iller wrote:

> try
>  require (includes/footer.php)
> ?>
> Hint: You May or may-not need parenthesis around includes/footer.php.
>
> "Dean Ouellette" <[EMAIL PROTECTED]> wrote in message
> 005801c1dd8c$4c6e9500$0200a8c0@yoda">news:005801c1dd8c$4c6e9500$0200a8c0@yoda...
> > Newbie who has my include working with this
> >  > include ('includes/footer.php');
> > ?>
> >
> > Problem is when I try to use this with files in other directories I use
> >  > include ('/includes/footer.php');
> > ?>
> >
> > Then get file cannot be found.  Is there a way to do this?
> >
> > Dean
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP] Re: Newbie and includes

2002-04-06 Thread G-no / |{iller

try

Hint: You May or may-not need parenthesis around includes/footer.php.

"Dean Ouellette" <[EMAIL PROTECTED]> wrote in message
005801c1dd8c$4c6e9500$0200a8c0@yoda">news:005801c1dd8c$4c6e9500$0200a8c0@yoda...
> Newbie who has my include working with this
>  include ('includes/footer.php');
> ?>
>
> Problem is when I try to use this with files in other directories I use
>  include ('/includes/footer.php');
> ?>
>
> Then get file cannot be found.  Is there a way to do this?
>
> Dean
>



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




[PHP] Re: Newbie and includes

2002-04-06 Thread Timothy J. Luoma

On Sat, 6 Apr 2002, Dean Ouellette wrote:

> Newbie who has my include working with this
>  include ('includes/footer.php');
> ?>
>
> Problem is when I try to use this with files in other directories I use
>  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