Re: [PHP] Threading

2007-06-20 Thread Richard Heyes
I've done a fair bit of research on threads in PHP in the past, but coming up to the conclusion that there is no way to have real multi threading in PHP. There's no way full stop. > Would anybody here know of any way to use threads in PHP that I may > have missed? I'm hoping to find a way that

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
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

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
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 12:19

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 w

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 - http://shifl

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 h

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 processo

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 Saturd

Re: [PHP] Threading objects

2003-03-13 Thread alex
gt; > Cc: "W. Enserink" <[EMAIL PROTECTED]>; "PHP List" > <[EMAIL PROTECTED]> Sent: Thursday, March 13, 2003 1:04 AM > Subject: Re: [PHP] Threading objects > > >> > All I'm really asking is how do you initiate threading with PHP? A >>

Re: [PHP] Threading objects

2003-03-12 Thread Ernest E Vogelsinger
At 23:23 12.03.2003, Kris said: [snip] >Is it possible to some how thread a php script threw apache. There has to be >something you can do, it seems there is always something you can do :) >What I want is the following. >I administer a mailing list that has a

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
my web programming experience is > rather limited. > > Thanks > > Kris > > > > - Original Message - > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> > To: "Kris" <[EMAIL PROTECTED]> > Cc: "W. Enserink" <[EMAIL P

Re: [PHP] Threading objects

2003-03-12 Thread Kris
y web programming experience is rather limited. Thanks Kris - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: "W. Enserink" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]>

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
> All I'm really asking is how do you initiate threading with PHP? > A small example would be nice You don't. This is a web scripting language, not Java. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Threading objects

2003-03-12 Thread Mirek Novak
Kris wrote: I want to be able to thread objects. I'm not really sure at all where to start. but I want a script where multiple objects are being processed at the same time. I have an example php script $a = new sleeper(); $b = new sleeper(); $c = new sleeper(); $a->sleepFor(10); $b->sleepFor(5);

Re: [PHP] Threading objects

2003-03-12 Thread Mincu Alexandru
I think that he wants a function that acts like steTimeout(..) in JavaScript ex: setTimeout('alert('tst2')',5000); setTimeout('alert('tst1')',4000); When you exec this code in js the first alert that is executed is tst1 and then tst2. I don't know if you can do this in php without using threads.

Re: [PHP] Threading objects

2003-03-12 Thread Kris
t;[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 9:29 PM Subject: Re: [PHP] Threading objects > i'm not sure what you want. But you have created objects here in $a,$b and > $c. > If you w

Re: [PHP] Threading objects

2003-03-12 Thread W. Enserink
i'm not sure what you want. But you have created objects here in $a,$b and $c. If you want to order them in a special way you have to write the functionality of course. I think you have to do this before the object is created because you define the variables 10,5,1 before the objects are created. O

[PHP] Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Braulio José Solano Rojas
Hi! "Rasmus Lerdorf" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > On Tue, 18 Feb 2003, Greg Donald wrote: > > On Tue, 18 Feb 2003, Bruce Miller wrote: > > > > >Will PHP allow multiple-thread execution? > > > > PHP4 does not have thread support. > > Well, except for pear/PECL

Re: [PHP] Threading

2003-02-22 Thread Joshua Moore-Oliva
HP script that takes ages, but wont affect he initial script > ending? > > Steve > - Original Message - > From: "Greg Donald" <[EMAIL PROTECTED]> > To: "Bruce Miller" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTEC

Re: [PHP] Threading

2003-02-22 Thread Steve Vernon
]> To: "Bruce Miller" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 8:03 PM Subject: Re: [PHP] Threading > On Tue, 18 Feb 2003, Bruce Miller wrote: > > >Will PHP allow multiple-thread execution? > > PH

[PHP] Re: [PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Greg Donald wrote: > On Tue, 18 Feb 2003, Bruce Miller wrote: > > >Will PHP allow multiple-thread execution? > > PHP4 does not have thread support. Well, except for pear/PECL/threads, of course. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Threading

2003-02-18 Thread Greg Donald
On Tue, 18 Feb 2003, Bruce Miller wrote: >Will PHP allow multiple-thread execution? PHP4 does not have thread support. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Threading code

2001-04-09 Thread Richard Scott Crawford
;>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 4/9/01, 11:11:44 AM, Joe Stump <[EMAIL PROTECTED]> wrote regarding Re: [PHP] Threading code: > > Phorum is indeed a good product. And

Re: [PHP] Threading code

2001-04-09 Thread Joe Stump
'%foo%' last time I checked) was the reason I didn't go with it. --Joe > > > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > > On 4/9/01, 11:12:

Re: [PHP] Threading code

2001-04-09 Thread Richard Scott Crawford
l Message <<<<<<<<<<<<<<<<<< On 4/9/01, 11:12:39 AM, "Matt Friedman" <[EMAIL PROTECTED]> wrote regarding Re: [PHP] Threading code: > Check out: http://www.phorum.org/ > We use phorum at: http://www.theparentreport.com

Re: [PHP] Threading code

2001-04-09 Thread Matt Friedman
Check out: http://www.phorum.org/ We use phorum at: http://www.theparentreport.com/community/discussion/ Takes a bit of work to install and configure but it's worth it; Check out the link and you'll see it can be fully integrated into your site. Let me know if you have more questions. Matt Fr

Re: [PHP] Threading code

2001-04-09 Thread Joe Stump
You should check into forums ... --Joe On Mon, Apr 09, 2001 at 11:57:45AM -0600, Ashley M. Kirchner wrote: > > Does anyone have 'plug-in' message threading code? I see several > PHP sites with some sort of message threading going on, and I'd hate to > reinvent the wheel. I'd like to have