Executing a string with both html and php inside it..

From: Date: Tue, 13 Mar 2001 23:35:31 +0000
Subject: Executing a string with both html and php inside it..
Groups: php.general 
Request: Send a blank email to php-general+get-43924@lists.php.net to get a copy of this message
Hey! What should I do in order to execute the next string: $str = "<html>\n" $str .= "blabla\n"; $str .= " <?php echo \"hello!\"; ?>\n"; $str .= "blabla\n"; $str .= "</html>\n"; When I tried using 'echo' with the string, but the php code didn't work... Is there any way of doing this without writing this string to a file and include'ing it? (that would be rather slow!) Thank you in advance - Aviv Revach
    BRILLIANeT Website -
http://www.brillianet.com/

« previous php.general (#43924) next »