Re: APC & FastCGI != upload progress ?
| From: | Manuel Lemos | Date: | Sun, 06 Apr 2008 02:44:52 +0000 |
| Subject: | Re: APC & FastCGI != upload progress ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272579@lists.php.net to get a copy of this message | ||
Hello,
on 04/04/2008 03:16 AM steve said the following:
> FastCGI is *the* way to run PHP, but I think Apache is not the
> platform for it anymore.
If need more than one server, Apache pre-forked model may limited.
Otherwise it is just fine. Other than that, I think there are some
features that only work with Apache SAPI.
> Is the COMMET implementation on the client side long polling
> (reconnect) or does it stream using script tags? What goes on in the
> server? Does it push the buffer of blank data that WebKit requires? Is
> it a PHP daemon process running as a simple HTTP server?
Actually it is just an hidden iframe that loads an HTML page with small
Javascript chunks that flush each COMET AJAX server response. This is a
regular HTTP request performed to the same script that serves that form.
The form AJAX plug-in can detect the AJAX request and respond
adequately. So it works equally well in all browsers including Webkit.
> On Wed, Apr 2, 2008 at 12:09 AM, Manuel Lemos <mlemos@acm.org> wrote:
>> Hello,
>>
>> on 03/30/2008 02:52 PM steve said the following:
>>
>>> Hmmm... I am working on a PHP daemon for comet style connections...
>> > I'll keep that idea in mind. I guess that using Flash is best solution
>> > at the moment.. at least the only one I have working...
>>
>> I implement COMET connections with plain HTML with an hidden iframe.
>> Actually I have been using that for a upload progress meter among other
>> AJAX uses. Actually it is an AJAX plug-in of this forms class:
>>
>> http://www.phpclasses.org/formsgeneration
>>
>> Here is an example of a form upload progress done all in PHP and plain HTML:
>>
>> ñ~?Á
>> ,LF9ƒÊ‹àé,http://www.meta-language.net/forms-examples.html?example=test_upload_progress
>>
>> Here you can watch a tutorial video that explains the COMET AJAX
>> implementation:
>>
>>
>> http://www.phpclasses.org/browse/video/1/package/1/section/plugin-ajax.html
--
Regards,
Manuel Lemos
PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/