Page 2 of 2

Re: cant with php

Posted: Wed Feb 01, 2006 3:57 pm
by Roja
yakasha wrote:You can't do what you're wanting to do with php for a couple reasons.

1) Nothing is sent to the the client until after your script is completely finished executing. This means putting Sleep() calls in your code will only accomplish one thing: Your viewers will think your site is really slow.
Thats not entirely accurate. You can (using flush), send output during script execution - as long as no other form of output buffering or compression is active. (Most people dont realize that, because the majority of hosts have one or the other in effect).