Here's what I tried: function buf($cmd) { ob_start(); preg_replace("#e#e",$cmd,"e"); $ret=ob_get_contents(); ob_end_clean(); return $ret; } ob_start(); $contents=buf('virtual("/test/")');
I tried the buf() function with print() and it worked as expected... Now, why does virtual teminate ob? I think it would be better with the possibility to parse the output some... Why? Cause I access my Tomcat from Apache and Tomcat must generate a XML page that would basicly need to be parsed... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php