Sunday 15 February 2015

PHP Data Processing Progress from MySQL -



PHP Data Processing Progress from MySQL -

i'm wondering concept called...

when process data, such adding database, real time view of beingness inserted in database.

for example, if upload next employee info excel:

brian elmer gomer

it show while processing:

starting add together data.. brian has been added. processing bla bla elmer has been added. process bla bla gomer failed added. see details.

what phone call kind of function? describe bit how this?

i'm not sure you'd phone call this.

on face of should able generate output emitting message @ every point in processing wish. however, php, web server, intervening proxies , browser can cache or buffer messages you're sending such nil appears while, every message appears @ once.

whilst possible work around careful utilize of buffer flushing, it's fiddly , not reliable.

an alternative approach utilize server sent events web page sets event handler list particular stream of messages , displays each message arrives. requires code @ both web page , server handle message stream, bypasses caching , buffering issue above.

you can find more details on server sent events sample code here

php mysql

No comments:

Post a Comment