PHP internal question.

From: Date: Tue, 28 May 2002 22:01:59 +0000
Subject: PHP internal question.
Groups: php.general 
Request: Send a blank email to php-general+get-99578@lists.php.net to get a copy of this message
How does PHP support server push? I was reading PHP4-1.1 source code, and noticed PHP_FUNCTION(header) (main/head.c) calls sapi_add_header_ex (main/SAPI.c) and thus calls sapi_apache_header_handler (sapi/apache/mod_php4.c), and that function puts a <HEADER_NAME>: <HEADER_CONTENT> into request_rec.headers_out table. So for a server push: Content-type: multipart/x-mixed-replace;boundary=--ThisRandomBoundary --ThisRandomBoundary Content-type: text/plain First Data --ThisRandomBoundary Content-type: text/plain Second Data --ThisRandomBoundary-- The function is going to put "Content-type: multipart/x-mixed-replace;boundary=--ThisRandomBoundary" into headers_out table. But what about the part below the first --ThisRandomBoundary? How does PHP internal handle/parse it? Thanks a lot (And if I post it to the wrong mailing list, please let me know) -- Wei Weng Network Software Engineer KenCast Inc.

« previous php.general (#99578) next »