Aviv,

eval()

http://www.php.net/manual/en/function.eval.php

Best regards,
Andrew


On 3/13/01 6:35 PM, "Aviv Revach" <[EMAIL PROTECTED]> wrote:

> 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/
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to