Re: Problems using include

From: Date: Thu, 07 Sep 2000 10:45:20 +0000
Subject: Re: Problems using include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15690@lists.php.net to get a copy of this message
At 11:24 07/09/00 +0100, you wrote: >Hi everyone, >I need to use the include statment but I need to pass a variable to the file included. I try this way: >include ("file.phtml?var=value") >but it doesn't work. >Can you help me please?. > But they should already be in scope if they have been initialized before you 'include' the file. (Not sure if the Zend optimizer might reorder this). Doesn't var=value; include "file.phtml"; work? Colin

« previous php.general (#15690) next »