Re: Nested PHP

From: Date: Sun, 01 Feb 2004 19:00:52 +0000
Subject: Re: Nested PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176517@lists.php.net to get a copy of this message
I think you are looking for the function eval()... Or preg_replace('!e!e',$phpcode,'e'); -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Russell Shaw" <rjshaw@iprimus.com.au> skrev i meddelandet news:401D25A4.6020507@iprimus.com.au... > Hi, > I have php code embedded in html, that is read by apache. > > Is nested php code allowable such as: > > <? > $phpcode="<? echo \"< some html >\" ?>"; > ?> > ... > <html> > ... > <body> > <? echo "$phpcode" ?> > </body> > </html>

« previous php.general (#176517) next »