Re: how does the PHP interpreter work?

From: Gordon Burditt (gordonb.oldyt_at_burditt.org)
Date: 07/16/04


Date: 15 Jul 2004 22:19:57 GMT


>> 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.
>>
>
>The question was in relation to the fetching of remote XML data
>feeds though. In which case PHP will not render the data until it
>has been fetched. Network lag, not interpreter lag. Sorry for any
>confusion.

Network lag on one page should not affect other pages much unless
the network (or the other end of the connection) is really being
saturated, or there's some locking going on (like it's enforced
that only one PHP process will go get fresh data from the feed when
the cached data is older than X minutes, and if another process
wants it, it will wait for the first process to get it, then use
it).

                                                Gordon L. Burditt



Relevant Pages

  • Re: how does the PHP interpreter work?
    ... A web server like Apache can run multiple threads at the same ... It is therefore possible to have multiple instances of PHP ...
    (comp.lang.php)
  • Re: A good editor
    ... Create a macro so you ... * Multiple languages - I use UE for php, html, css, javascript, perl and c. ... I work at an advertising agency where there are all Macs. ...
    (comp.lang.php)
  • Re: [PHP] php / mysql performance resources
    ... MULTIPLE SELECTS allows you to join the data yourself, ... MULTIPLE SELECTS can be faster than a JOIN if your database is under ... PHP process to do the joining work. ... better than database servers. ...
    (php.general)
  • Re: [PHP] php / mysql performance resources
    ... MULTIPLE SELECTS allows you to join the data yourself, ... PHP process to do the joining work. ... better than database servers. ...
    (php.general)
  • Re: How does vBulletin check license?
    ... > PHP is source code based. ... How could vBulletin sell a key for 1 year or for ... > multiple years. ...
    (comp.lang.php)