Here's what you wrote, 01-01-10: >Try this: > >function my_eval($code) { > ob_start(); > eval($code); > $retval = ob_get_contents(); > ob_end_clean(); > return $retval; >} > >$str = my_eval("echo 2+2;"); >echo $str; Mr. Lerdorf, Mr. McClahahan, Mr. Butzon et al, Thank you for your replies. It appears I'm going to have to see about having my server upgraded to PHP 4 in order to solve the problem, as PHP 3 does not support ob_*(). If anyone else is paying attention to this thread, please be advised that ob_ functions require PHP 4. Thanks to all who have helped. Sincerely, Kristofer -- http://www.brokenhill.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~ "The only real ideas are the ideas of the shipwrecked" --Ortega y Gassett ~~~~~~~~~~~~~~~~~~~/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 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]