By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,915 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,915 IT Pros & Developers. It's quick & easy.

PHP + mysql + multithread + test tool

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

Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.