note 34673 added to function.virtual

From: Date: Sun, 03 Aug 2003 15:46:24 +0000
Subject: note 34673 added to function.virtual
Groups: php.notes 
Request: Send a blank email to php-notes+get-53266@lists.php.net to get a copy of this message
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... ---- Manual Page -- http://www.php.net/manual/en/function.virtual.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34673 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34673&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34673&report=yes

« previous php.notes (#53266) next »