[wp-hackers] Using eval within Wordpress for a function mixed with html

Chris chris.hearn01 at ntlworld.com
Tue Dec 2 00:26:55 GMT 2008


Hi andre,
yes, that's the way I was thinking too!
But don't think that will substitute a php function such as 
bloginfo('wpurl') will it?
Chris

    ********************************************************************** 
    Chris Hearn 
    *Tel:* 01625 827589 
    *Mob:* 07768 725141 
    *email:* chris.hearn01 at ntlworld.com 
    ********************************************************************** 
    The information transmitted is intended only for the person or entity 
    to which it is addressed and may contain confidential and/or privileged 
    material. Any review, retransmission, dissemination or other use of, 
    or taking of any action in reliance upon, this information by persons 
    or entities other than the intended recipient is prohibited. 
    If you received this in error, please contact the sender and delete the 
    material from any computer. 
    ********************************************************************** 



andré renaut wrote:
> Something like that ? (i am using a function do_eval() using php function
> eval()
>
>
>
>     function do_eval($string)
>     {
>         ob_start();
>             echo(eval(' ?>' . $string));
>             $newstring = ob_get_contents();
>         ob_end_clean();
>         return $newstring;
>     }
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>   


More information about the wp-hackers mailing list