For example I have a program like this: <? outputhtml(); //display a html page dosql(); //run a bunch of sql statement ?> The question is: will php wait until the browser fully download all html text before php starts to run the sql statement?
You can control it with output buffering:
http://www.php.net/manual/en/function.ob-start.php