Re: Nested PHP

From: Date: Sun, 01 Feb 2004 18:48:45 +0000
Subject: Re: Nested PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176515@lists.php.net to get a copy of this message
Russell Shaw wrote:
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>
Not sure what you're trying to do there. You can do this: <?php $phpcode = "<b>hello world!</b>\n"; ?> <html> <body>
    <?php echo $phpcode; ?>
</body> </html> -- Robby Russell, | Sr. Administrator / Lead Programmer Command Prompt, Inc. | http://www.commandprompt.com rrussell@commandprompt.com | Telephone: (503) 222.2783

« previous php.general (#176515) next »