Skip to content
Advertisement

Tag: output-buffering

get return from echo

I’m working with some functions that echo output. But I need their return so I can use them in PHP. This works (seemingly without a hitch) but I wonder, is there a better way? Example: Answer no, the only way i can think of to “catch” echo-statements it to use output-buffering like you already do. i’m using a very similar

PHP – How Detect if Output Buffering is Enabled

Is there a simple way to detect in PHP if output_buffering is enabled in php.ini? I’d like to be able to display a message if it is not enabled. Within my application I tried using an htaccess file to automatically enable it but it seems it does not work in all server environments and in some cases it gives a

Advertisement