I'm building a cache regeneration thing and for debugging I'd need to see every echo call as soon as it's called. I use PHP.
So basically when I call the thing, it loops on several objects, check for cached versions and outputs a success or failure message (on debug mode).
I'd need to be able to get that live output when calling the page using curl for example.
I've played a little with the ob_ PHP functions but nothing seems to work.
ob_start();
echo '[X] Failed to find a location using geocoder for: ' . $searchString . " STATUS: $response->status\n";
ob_end_flush();
But I'm not sure that I fully understood how that works.
As the web server I'm using nginx with php-fpm.
Any suggestions?
Thanks!