Forum Moderators: coopster

Message Too Old, No Replies

PHP concurrent processes

         

ElectroSoft

12:45 pm on Apr 8, 2006 (gmt 0)

10+ Year Member



Hello guys,

Well, if I have a PHP script which runs for about 10 seconds on the server before returning the page to the client. How many concurrent processes can I have?!

// Code
for($i=0;i<10;i++) {
//Do something... few sql queries
sleep(1);
}
// End of code

Do I need a very powerful server to handle like 100 to 500 clients requesting the page in the same time?!

what are the factors?

thank you

coopster

8:21 pm on Apr 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What do you have running that takes 10 seconds at a time? If it is queries, you should look at optimizing the query statements.

hakre

3:42 pm on Apr 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



maybe a look into the "Do big PHP scripts demand system resources [webmasterworld.com]" thread might be of help in analyzing the time your script needs to run.