|
Posted by Rami Elomaa on 05/27/07 18:46
Matt kirjoitti:
> Schraalhans Keukenmeester wrote:
>> At Sun, 27 May 2007 08:03:29 -0700, Matt let h(is|er) monkeys type:
>>
>> If you tried the example I posted I have no explanation why it won't
>> work.
>> It definitely does on my local machine AND my isp's server. You're
>> running
>> on a Linux box or...?
>>
>> Sh.
>
> Yes, unfortunately I just get the end result printed when going through
> a browser. Running the script through CLI seems like it prints each
> line separately.
Make sure you're not using output buffering, check php.ini for this. Do
your other scripts work as expectedly? If you do like this:
<?php
while($i++<5) {
print($i);
sleep(5);
}
?>
does it print the numbers one-by-one with 5 second intervals or are they
all printed at once, after 25 seconds when the script exits?
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Navigation:
[Reply to this message]
|