flush - Realtime PHP Function -
i have script take between 5 - 10 sec completly loading .
i seek create , ob_flush show outputs @ end , no @ real time .
for( $i = 0 ; $i < 10 ; $i++ ){ // ** echo "\n[-] tracker mode (on): waiting user online...\n"; $wa->sendpresencesubscription($dst); $wa->pollmessages(); if($presence == "available"){ echo "- user online\n\n"; } else { echo "- user offline\n\n"; $wa->sendgetrequestlastseen($dst); } // ** flush(); ob_flush(); sleep(1); }
the marks ** script : 5 - 10 seconds loading each other..
php flush
No comments:
Post a Comment