Ouput buffer and vertual()
| From: | Ivik Injerd | Date: | Fri, 10 Sep 2004 11:30:32 +0000 |
| Subject: | Ouput buffer and vertual() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196295@lists.php.net to get a copy of this message | ||
--- blah.pl:
#!/usr/bin/perl
print "Content-type: text/plain\r\n\r\n";
print "blah";
exit;
--- test.php:
ob_start();
virtual("blah.pl");
$tmp = ob_get_contents();
echo "\n[ TMP: $tmp ]";
ob_end_clean();
--- test.php (output):
blah
[ TMP: ]
Looks like vertual() gets past the output buffer. How can I keep it in the buffer?
Thanks!
--
Ivik Injerd [ www.zavaboy.com ]