Re: variables include

From: Date: Sat, 02 Dec 2000 09:31:53 +0000
Subject: Re: variables include
Groups: php.general 
Request: Send a blank email to php-general+get-28352@lists.php.net to get a copy of this message
Addressed to: jeremy brand <jeremy@nirvani.net> David Smith <webmaster@indywebdesign.com> PHP List <php-general@lists.php.net> ** Reply to note from jeremy brand <jeremy@nirvani.net> Fri, 1 Dec 2000 16:52:47 -0800 (PST) > > > page.php?page=apage > > > > I know that <? echo "$page"; ?> will display the value or > > "apage' in this > > case. > > > > I want to somehow do this... > > > > <?php include ('$page.php') ?> so that it includes "apage.php" > > <?php include ($page . '.php'); ?> > <?php include( "$page.php" ) ?> will also work. '.' is not allowd in variable names, so it ends the variable. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.general (#28352) next »