NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Immediate output to browser


Joined: 12 Jun 2008
Posts: 6
Location: Ft. Worth, TX
Reply with quote
Is there a way for the editor to immediately echo information (from the PHP code) instead of waiting for the program to terminate, i.e., no output buffering? I need the output to make sure a long running program isn't hung.
View user's profileFind all posts by richarddsmithSend private message


Joined: 20 Apr 2007
Posts: 25
Location: UK
Reply with quote
Have you tried flushing it?

ob_get_level();
ob_end_flush();
// start output buffering
if (ob_get_length() === false) {
ob_start();
}
echo "Part one, $var1<br />";
ob_flush();
flush();
View user's profileFind all posts by FatBobSend private message


Joined: 12 Jun 2008
Posts: 6
Location: Ft. Worth, TX
Reply with quote
That works. Thanks. I appreciate the help.
View user's profileFind all posts by richarddsmithSend private message
Immediate output to browser
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic