html - PHP - Could you use POST method to stream data to a server over a long period of time? -


caveat, know has potential ridiculously stupid question, had thought , want know answer.

aim: run interactive session between browser , server single request without ajax or websockets etc..

scenario: php file on server receives data post method user. content length in header 8mb keeps connection open until receives full data of 8mb. on user side delivering data very (simulating terrible connection, example). server receiving data bits @ time. [can passed php file process bits @ time? or passed once data received?] whatever wants bits, , delivers browser, in echo loop). @ time intervals, user injects new data 'stream' surrounded continuous stream of padding data.

is of possible? or cgi? expecting not possible really, stops process timing out if have terrible connection , post data huge?

as far know, this, php file calling post data called webserver once has received data. otherwise, sending image post, , php script moves image tempfiles directory directory, before data has been received, have corrupt image, nothing more, nothing less.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -