note 34673 deleted from function.virtual by didou
| From: | didou@php.net | Date: | Sun, 03 Aug 2003 16:30:48 +0000 |
| Subject: | note 34673 deleted from function.virtual by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53269@lists.php.net to get a copy of this message | ||
Note Submitter:
----
It seems like Apache sends this directly to the client instead of back to the PHP script as this
doesn't work as expected:
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...