Re: include() question

From: Date: Thu, 14 Mar 2002 21:34:49 +0000
Subject: Re: include() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88575@lists.php.net to get a copy of this message
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... so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward ----- Original Message ----- From: "Phil Schwarzmann" <pschwar@jhmi.edu> To: <php-general@lists.php.net> Sent: Thursday, March 14, 2002 10:20 PM Subject: [PHP] include() question > Why doesn't this work... > > include("index.php?var='$var'); > > I want to include a page in my code and send a variable to it but I get > some funky error. > > THANKS!! >

« previous php.general (#88575) next »