Hey,
Aviv Revach wrote:
> At 14:29 02/03/01 -0300, Lucas Persona wrote:
> >Aviv Revach wrote:
> > > How can I make those php3 commands to work as they supposed to?
> > Take a look at the eval() function
> >http://www.php.net/manual/en/function.eval.php
>
> Actually it doesn't. My string does not(!!) contains only php code.
> It contains HTML tags, text, and php code (called with <?php ?>).
I don't know any real function that does it...others could know
something more about this, but if nothing is presented to you, you could
do something like:
- get all the '<?php' '?>' tags' position and separe them from the
other code (that will be HTML);
- you will have two things (could be an array of data). One is all the
php code and the other is the HTML code; If you create a bidimensional
array you can create a sequence of php and html code, or better than
that, create a vector that will have the Data Type (HTML or PHP) and the
value (the code)
- Then, for each row or field of you array/vector , you check if it is
php code (then use eval) or HTML (then use echo).
Hope this helps,
--
Lucas Persona ICQ #17635618
[EMAIL PROTECTED] +55 19 451 6300
-------------------------------------------------------
Widesoft Sistemas Ltda http://www.widesoft.com.br
--
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]