Hmmm, now I'm in doubt... I always had errors using it, so I stopped using
it... I also have problems with variables that have the same name and are in
both the original file and the included file... might it have something to
do with the PHP version you're working on?

Greets,

Edward

----- Original Message -----
From: "Erik Price" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Cc: "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 10:58 PM
Subject: Re: [PHP] include() question


>
> On Thursday, March 14, 2002, at 04:34  PM, Edward van Bilderbeek - Bean
> IT wrote:
>
> > you can't use a variable as a parameter for the included file... because
> > include does nothing else then putting the text of the include file on
> > the
> > place of the include statement...
>
> Are you sure about this?  I'm almost positive that PHP is flexible about
> accepting variables or strings as function arguments in most cases.  I
> just tested it, and it seems to work fine...
>
> $includefile = './leftnavigation.inc';
> include($includefile);
>
> I posted a question on this list about a month ago, and someone said
> that you can use variables or strings in many cases -- just remember
> that the variable expands to the string BEFORE being processed by the
> function.
>
> Erik
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
>
>
> --
> 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

Reply via email to