Re: how does the PHP interpreter work?

From: Tony Marston (tony_at_NOSPAM.demon.co.uk)
Date: 07/15/04


Date: Thu, 15 Jul 2004 11:16:43 +0100


"lawrence" <lkrubner@geocities.com> wrote in message
news:da7e68e8.0407142158.50cc32d8@posting.google.com...
> Phil Roberts <phil.roberts@googlemail.com> wrote in message
news:<Xns9524A062BB55Ephilroberts@216.196.97.132>...
> > lkrubner@geocities.com (lawrence) emerged reluctantly from the
> > curtain and staggered drunkenly up to the mic. In a cracked and
> > slurred voice he muttered:
> >
> > > Are you saying that PHP can not begin to render any
> > > pages for the second visitor until it is done reading the stream
> > > of data over the Internet for the first visitor? That is, the
> > > second visitor must wait 8 seconds before the PHP interpreter
> > > even begins to work on rendering a page for them?
> >
> > Yes.

This is crap. A web server like Apache can run multiple threads at the same
time, and as each HTTP request comes in it is handed over to the first
available thread. It is therefore possible to have multiple instances of PHP
being executed at the same time as each instance is within its own thread.
having the ability to allow multiple concurrent threads is a function of the
web server, not PHP.

-- 
Tony Marston
http://www.tonymarston.net


Relevant Pages

  • Re: how does the PHP interpreter work?
    ... A web server like Apache can run multiple threads ... >> server, not PHP. ... Network lag, not interpreter lag. ...
    (comp.lang.php)
  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: PHP-Yes, HTML-No --- Why?
    ... Because the files, when downloaded, are called .php and have absolutely no php in them:) ... But the extension doesn't match the contents of the file. ... Surely a dynamic web server should appear exactly the same as a static one - all files that contain HTML when viewed should be called .html. ...
    (comp.lang.php)
  • Re: standard coding...
    ... >> So the file, once spat out, should be called .html. ... >> still call php files .php even after they've been passed. ... The web server or the maintainer? ... Making sure your extensions match your content is ...
    (comp.lang.php)
  • [Full-Disclosure] PHP Exploit
    ... IMHO, any box that has an Apache web server running PHP, needs to be ... If you look at the comments on the IA32 platform states that it ... >The PHP Group has learned of a serious security vulnerability in PHP ...
    (Full-Disclosure)