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
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,
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
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
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
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
--- 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
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
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
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
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
>>
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
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
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]>
> 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
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);
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.
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
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
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
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
]>
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
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
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
;>>>>>>>>>>>>>> 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
'%foo%'
last time I checked) was the reason I didn't go with it.
--Joe
>
>
> >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
>
> On 4/9/01, 11:12:
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
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
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
29 matches
Mail list logo