OK, so what would it look like? Show me a comparable snippet of PHP code. How does one enable this feature if its off by default? Why is it off by default? I guessing it opens up security issues and/or has side effects. Not conducive to enterprise-level computing, imho.
What is PEAR? Is that like the standard JavaSE library? The last time I was on php.net it seemed to be something that must be downloaded separately from the php server. >relies on OS abilities. Does this mean my PHP code would have to tailored to Windows, MacOSX, or Linux? Please clarify. On Sat, Mar 21, 2009 at 7:50 AM, Joseph Millet <joseph.mil...@gmail.com>wrote: > [...] Where blast() iterates thru several thousand records, which are sent > to a > third-party site for processing. The third-party site allows no more than > 5 > connections per second, so I just call Thread.sleep(1000) on every 5th > record. > > It is very simple, very elegant and very fast now that some much load has > been moved off the main http thread. > > My question is: how would this be accomplished in PHP? Would I need to > recompile the whole php server with a special thread package or what? > > One would use PHP PCNTL functions such as C-like fork(), it comes with any > PHP but is not active by default and you'd find some wrapper libraries such > as PEAR's PHP_FORK in order to help have a higher level of abstraction, so > that you'd may write it just pretty much the same as you did in java. Of > course this relies on OS abilities. > > > On Sat, Mar 21, 2009 at 12:02 PM, André Warnier <a...@ice-sa.com> wrote: > > Peter Crowther wrote: > > [...] > > > >> > >> I'm also particularly amused by the topmost set of bars in figure 2, > given > >> how proud the perl-ites are of their RE library and performance ;-). > >> > > You didn't expect for a minute that this would remain unanswered, did you > ? > > First, the perl-ites would answer that the comparison being with PHP, it > > is of little relevance. Everyone knows that PHP is for the > > script-kiddies, while Real Programmers use perl. > > Second, they would tell you that in the same memory space used by one > > Tomcat and one Java servlet, they could run 10 parallel Apache servers > > with mod_perl to do the same thing, and still have a couple of them > > spare to serve the static content and collect the data to display those > > tables in real-time. > > Finally, they would tell you that while Tomcat is still "warming up" in > > order to run the comparison, they themselves are waiting for you at the > > bar, and are already pretty warmed up themselves. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >