Re: [PHP] Threading PHP

2004-01-26 Thread Mark Charette
On Sun, 25 Jan 2004, Galen wrote: I'm not 100% sure what you're talking about, to be honest. I think I'm in the second half of the people... :) As far as I can tell, Apache runs as many processes (httpd) as needed on my local machine. As far as my server, I haven't seen this behavior,

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
Interesting idea. I feel rather unintelligent for not thinking of that, but it would solve my second application for threading - big tasks I don't want the user to wait around to finish like image compression and storage. Excellent suggestion. Unfortunately, my first application for threading

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
Looks great, except it's not setup on my remote host. I have SSH, FTP, etc access but I do not administrate the system nor can I request something like recompiling PHP just for me. You can see for yourself: http://zinkconsulting.com/phpinfo.php Any other ideas? -Galen On Jan 24, 2004, at

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
Sorry, no-can-do. No root access - it's a lightly loaded shared machine. No Apache 2. Other ideas? Full info at: http://zinkconsulting.com/phpinfo.php -Galen On Jan 24, 2004, at 6:16 PM, Chris Shiflett wrote: --- Galen [EMAIL PROTECTED] wrote: This may be completely crazy, but let me tell you

Re: [PHP] Threading PHP

2004-01-25 Thread Galen
I'm not 100% sure what you're talking about, to be honest. I think I'm in the second half of the people... :) As far as I can tell, Apache runs as many processes (httpd) as needed on my local machine. As far as my server, I haven't seen this behavior, but I admit I don't sit there watching top

[PHP] Threading PHP

2004-01-24 Thread Galen
Hi, This may be completely crazy, but let me tell you what I want to do: thread PHP. My server is a dual-processor 2 GHz machine, and it's not very loaded. I have a few tasks that are huge and lengthy and would benefit from being placed in their own thread if you will. This would serve to

Re: [PHP] Threading PHP

2004-01-24 Thread Lucas Gonze
One possibility is to have the code which first receives the request split it up into subrequests and do HTTP requests for the subrequests. Whether that makes sense depends on whether the overhead of an HTTP transaction is a big part of the execution time of the subrequests. - Lucas On

Re: [PHP] Threading PHP

2004-01-24 Thread Mark Charette
On Sat, 24 Jan 2004, Galen wrote: Hi, This may be completely crazy, but let me tell you what I want to do: thread PHP. Can you set processor affinity on your system? If so, you can pseudo thread by assigning processes to different CPUs; e.g., run your main Webserver on one processor and

Re: [PHP] Threading PHP

2004-01-24 Thread Evan Nemerson
php.net/pcntl cvs.php.net/cvs.php/pecl/threads On Saturday 24 January 2004 03:24 pm, Galen wrote: Hi, This may be completely crazy, but let me tell you what I want to do: thread PHP. My server is a dual-processor 2 GHz machine, and it's not very loaded. I have a few tasks that are huge

Re: [PHP] Threading PHP

2004-01-24 Thread Chris Shiflett
--- Galen [EMAIL PROTECTED] wrote: This may be completely crazy, but let me tell you what I want to do: thread PHP. If you use PHP as an Apache module, you can use Apache 2, which has threading. Just make sure any extension you use is thread-safe. Chris = Chris Shiflett -