Re: include() question

From: Date: Thu, 14 Mar 2002 21:58:05 +0000
Subject: Re: include() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88579@lists.php.net to get a copy of this message
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 pricee@hhbrown.com

« previous php.general (#88579) next »