Jump to content

echo question?


ballhogjoni

Recommended Posts

if your compiler is running thru a php script and it reaches an echo does it print the echo out right then or does it wait till then end of the script to print it out?

 

EX:

<?php

//some php code

echo 'this stuff'; //does the compiler echo this right now or does it finish running through the entire script?

//some more php code

?>

Link to comment
https://forums.phpfreaks.com/topic/139547-echo-question/
Share on other sites

I'm guessing that your question is related to this thread - http://www.phpfreaks.com/forums/index.php/topic,232730.0.html

 

php, web servers, and browsers all do various buffering/compression that prevent incremental content from being sent to the browser.

 

Web servers are designed to receive requests for (whole) web pages and output those whole pages. If you want to do anything on a smaller scale, you must generate a separate request for each piece of information (i.e. AJAX.)

Link to comment
https://forums.phpfreaks.com/topic/139547-echo-question/#findComment-730227
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.