08-07-2002, 02:16 AM
Is there a php equivalent of the ASP: Response.Buffer = true
(which causes all scripts to be executed before anything gets rendered to the page.)
08-07-2002, 03:05 AM
I gather ob_start must be it?
08-07-2002, 01:11 PM
yup - thats it ...
i.e. readfile($file) in PHP outputs the contents of file directly to screen & there is no normal way of manipulating its contents but you can use ob_start() & friends
//can't normally get at the files contents (using readfile())
//so grab the contents of the buffer//
$str = ob_get_contents();
//do something pointless to $str... because we can//