Re: [PHP-DEV] WSGI-like SAPI for PHP ?

2010-09-13 Thread Dennis Hotson
main advantage of the app server approach is that you can do your framework init stuff once at server startup instead of every single request, which can be a pretty huge saving. The main problem is that PHP isn't very good at long running processes. Also worth checking out: http://mongrel2.org - Dennis Hotson

Re: [PHP-DEV] php and multithreading (additional arguments)

2010-04-01 Thread Dennis Hotson
I use pcntl_fork() for writing parallel multi-process applications and it works pretty well. Also, you can use shared memory queues to pass messages between processes (ie msg_get_queue()). I wrote a little proof of concept library a while ago to demonstrate: http://github.com/dhotson/Phork It's n

Re: [PHP-DEV] Implementing fdopen in PHP

2010-03-14 Thread Dennis Hotson
ther useful application of fdopen() is for hot swapping a running program. http://nathanwiegand.com/wp/2010/02/hot-swapping-binaries/ I realise this is probably not a priority for PHP, but I actually enjoy writing network servers in PHP and this would be a pretty awesome feature. Regards, Dennis Hotson (PS. Sorry for the dupe Pierre, I forgot to reply to the list.)

[PHP-DEV] Implementing fdopen in PHP

2010-03-13 Thread Dennis Hotson
27;s the best way to get a function like this into PHP? Regards, Dennis Hotson