|
Posted by gosha bine on 08/15/07 08:59
On 15.08.2007 08:42 Arjen wrote:
> lionel wrote:
>> Hello,
>>
>> This is a simple script I test in a browser (firefox & opera) :
>>
>> echo "test 1<br />" ;
>> sleep(3);
>> echo "test 2<br />" ;
>>
>> I expected to see "test 1" appearing first and then "test 2" 3 sec after.
>> Still, I got "test 1" & "test 2" appearing "in one shot" after 3 seconds.
>> How can I get what I expected (I precised in a browser because there's
>> no pb in a command line execution) ?
>>
>> Thanks in advance,
>>
>> Lionel
>
> Try this
>
> echo "test 1<br />" ;
> ob_flush();
> flush();
> sleep(3);
> echo "test 2<br />" ;
>
> Arjen
> www.arjenkarel.nl
>
not ob_flush, just flush()
--
gosha bine
makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi
Navigation:
[Reply to this message]
|