469,579 Members | 1,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

PHP + mysql + multithread + test tool

Could someone give a hint on how to do multithread programming with PHP
scripting here?

Thanks
Jul 17 '05 #1
4 6758
dbmethods wrote:
Could someone give a hint on how to do multithread programming with PHP
scripting here?

Thanks


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.
Consultant - Available.
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Jul 17 '05 #2
Michael Austin wrote:
dbmethods wrote:
Could someone give a hint on how to do multithread programming with
PHP scripting here?
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.

Thanks

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

Jul 17 '05 #3
Michael Austin <ma*****@firstdbasource.com> wrote or quoted:
dbmethods wrote:

Could someone give a hint on how to do multithread programming with PHP
scripting here? [...]


scripting languages by definition are single-threaded [...]


http://www.wordiq.com/definition/Scr...mming_language

....appears to list many multi-threaded scripting languages.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #4
dbmethods wrote:
Could someone give a hint on how to do multithread programming with
PHP scripting here?


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.


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.

More info here: http://www.electrictoolbox.com/artic...ocess-forking/

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dave | last post: by
2 posts views Thread by Otto Leholt | last post: by
39 posts views Thread by Mairhtin O'Feannag | last post: by
2 posts views Thread by zhebincong | last post: by
2 posts views Thread by pc | last post: by
4 posts views Thread by rass.elma | last post: by
6 posts views Thread by jmartin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.