Forum

Posted by
Ciaran Clissmann - December 2008
Hi,

I'm trying to get Roxen CMS4.5 to output rthe results of a php script in real time. I've written a test script, shown below, which flushes output as it should, no problem, when served by Apache, but not when served by Roxen.

Is there a setting someplace I should know about ?

<?php

$a = "one";
$a = str_pad($a,5000);
print ("$a");
ob_flush();flush();
sleep(2);
print ("two");
flush();
sleep(2);
print("done");

?>
Posted by
Pontus stlund - December 2008
Correct me if I'm wrong but I think that Roxen always buffers the output and my guess is that Roxen will wait for the PHP script to execute and then output its result. So my guess - I'm guessing alot here - is that output buffering and flushing in a PHP script will have no effect when executed within a Roxen process.
1
Search this thread: