dbmethods wrote:[color=blue]
> Could someone give a hint on how to do multithread programming with PHP
> scripting here?
>
> Thanks[/color]
scripting languages by definition are single-threaded, so I must ask, can you
give us a psuedo-code example of what you are trying to achieve. You want to
yse the right tool to do the job and if you are trying to do multi-threading,
PHP is probably not it...
Michael Austin wrote:[color=blue]
> dbmethods wrote:
>[color=green]
>> Could someone give a hint on how to do multithread programming with
>> PHP scripting here?[/color][/color]
I like to have a web-base interface to test out database servers, so I
thought PHP may do this easily. In this, I can specify the number of db
connections I want to simulate. I know Java can do this, just wonder any
PHP API available or I should look at perl interface.
[color=blue][color=green]
>>
>> Thanks[/color]
>
>
> scripting languages by definition are single-threaded, so I must ask,
> can you give us a psuedo-code example of what you are trying to
> achieve. You want to yse the right tool to do the job and if you are
> trying to do multi-threading, PHP is probably not it...
>[/color]
Michael Austin <maustin@firstd basource.com> wrote or quoted:[color=blue]
> dbmethods wrote:[/color]
[color=blue][color=green]
> > Could someone give a hint on how to do multithread programming with PHP
> > scripting here? [...][/color]
>
> scripting languages by definition are single-threaded [...][/color]
dbmethods wrote:
[color=blue][color=green][color=darkred]
>>> Could someone give a hint on how to do multithread programming with
>>> PHP scripting here?[/color][/color]
>
> I like to have a web-base interface to test out database servers, so I
> thought PHP may do this easily. In this, I can specify the number of db
> connections I want to simulate. I know Java can do this, just wonder any
> PHP API available or I should look at perl interface.[/color]
I've never been able to find a way to multi-thread PHP but you can fork sub
processes (on a Unix box, not on Windows). However, this is not something
you should do in a web server environment, only from the command line.
Comment