On Wednesday 14 March 2001 12:50, you wrote:

> My string contains HTML tags with PHP code inside(in '<?php' and  '?>'
> tags), not only PHP as eval() requires.
>
> Do you have any other suggestion?

AFAIK there's no other way than using include().

Why do you need that anyway?

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

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 36000000 hosts for known problems in 3 weeks

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