Re: include() question

From: Date: Thu, 14 Mar 2002 22:12:27 +0000
Subject: Re: include() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88584@lists.php.net to get a copy of this message
Oh I see. Sorry, i was thinking apples and you guys were talking about oranges. I just ran into this problem a little while ago, that's why I felt the need to butt in. Erik On Thursday, March 14, 2002, at 05:08 PM, Edward van Bilderbeek - Bean IT wrote:
Jep, that was what I meant... sorry Erik, didn't read your question right... Edward ----- Original Message ----- From: "Jan Rademaker" <janr@486.yi.org> To: "Erik Price" <pricee@hhbrown.com> Cc: "Edward van Bilderbeek - Bean IT" <edward@bean-it.nl>; "Phil Schwarzmann" <pschwar@jhmi.edu>; <php-general@lists.php.net> Sent: Thursday, March 14, 2002 11:03 PM Subject: Re: [PHP] include() question
On Thu, 14 Mar 2002, Erik Price wrote:
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 think what Edward means is that you can't pass parameters to an included file, like include("some.inc?var=value"); That's true, at least for local files. include("http://remotesite/some.php?var=value") will work, as long as remotesite has php installed, of course. -- Jan Rademaker <janr@486.yi.org> http://www.ottobak.com
---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#88584) next »