Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.