• Is PHP Really That Popular?

    From Lawrence D?Oliveiro@3:633/10 to All on Friday, October 23, 2026 06:20:41
    You?ve heard the oft-repeated statistic that PHP powers some 70% of
    the world?s websites. But does it really?

    Reading this (very old) article <https://eev.ee/blog/2012/07/28/quick-doesnt-mean-dirty/>, I came
    across this:

    Other choice TechCrunch quotes:

    And yet PHP is allegedly used by more than three-quarters of
    all web sites.

    Alleged, indeed. This links to w3techs, which seems to indicate
    that it uses URLs and HTTP headers to detect what language a site
    is written in. What popular language plugin for Apache reports
    itself in the Server header, whether it?s being used for the
    current page or not? mod_php. What doesn?t? Everything else!

    (Addendum: I am told w3techs is even less reliable than appears at
    first glance. They omit the nearly 20% of sites they can?t guess
    at all.)

    Basically, PHP is the one that tends to advertise itself to the world,
    whereas the rest don?t bother. PHP also betrays itself because its
    antiquated file-per-page structure means all the URLs end with ?.php?
    (yes, there are ways to hide this, but do you think your typical PHP
    programmer could figure that out?).

    In short, it?s a wonder that there are 30% of websites that want to
    advertise what they use, that do bother to point out that they?re
    *not* running PHP.

    Yes, the article writer is a Python fan. And so am I. What?s wrong
    with that? ;)

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From noel@3:633/10 to All on Friday, October 23, 2026 18:43:48
    On Fri, 23 Oct 2026 06:20:41 +0000, Lawrence D?Oliveiro wrote:

    Basically, PHP is the one that tends to advertise itself to the world, whereas the rest don?t bother. PHP also betrays itself because its
    antiquated file-per-page structure means all the URLs end with ?.php?
    (yes, there are ways to hide this, but do you think your typical PHP programmer could figure that out?).

    Don't need to be a programmer/coder/whatever

    AddType application/x-httpd-php .html

    done

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From noel@3:633/10 to All on Friday, October 23, 2026 18:44:50
    On Fri, 23 Oct 2026 18:43:48 +1000, noel wrote:

    On Fri, 23 Oct 2026 06:20:41 +0000, Lawrence D?Oliveiro wrote:

    Basically, PHP is the one that tends to advertise itself to the world,
    whereas the rest don?t bother. PHP also betrays itself because its
    antiquated file-per-page structure means all the URLs end with ?.php?
    (yes, there are ways to hide this, but do you think your typical PHP
    programmer could figure that out?).

    Don't need to be a programmer/coder/whatever

    AddType application/x-httpd-php .html

    done

    ooops, should have said, that's in httpd.conf

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Eli the Bearded@3:633/10 to All on Saturday, October 24, 2026 00:45:10
    In comp.misc, Lawrence DOliveiro <ldo@nz.invalid> wrote:
    You've heard the oft-repeated statistic that PHP powers some 70% of
    the world's websites. But does it really?

    I've heard Wordpress powers > 20% of websites and 100% of Wordpress is
    PHP. There are other web frameworks using PHP, too.

    view-source:https://www.whitehouse.gov/

    Using Wordpress, look for the /wp-content/ links.

    Wikipedia, and wikis using that software (there are a lot run by the
    Wikimedia org, and many independent ones) are using PHP.

    A bunch of forum software uses PHP.

    My personal website doesn't use PHP, but the server lies and sends out a
    an X-Powered-By: PHP header to fuck with script kiddies.

    I got paid a lot of money for a decade to manage a PHP website that used
    a custom built framework. (That site is using Wordpress now, and I am
    not involved.)

    Elijah
    ------
    loves fucking with script kiddies

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Saturday, October 24, 2026 03:55:32
    On Sat, 24 Oct 2026 00:45:10 -0000 (UTC), Eli the Bearded wrote:

    Using Wordpress, look for the /wp-content/ links.

    Interesting how often this is still a giveaway, even though links on
    the site might not have ?.php? in them.

    My personal website doesn't use PHP, but the server lies and sends out a
    an X-Powered-By: PHP header to fuck with script kiddies.

    That kind of thing is fun. ;)

    Connect to my email server, and the greeting says

    220 ®my-domain-nameŻ ESMTP Sendmail 8.8.8/8.8.8

    That probably causes some security experts to twitch. ;)

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Scott Dorsey@3:633/10 to All on Saturday, October 24, 2026 15:42:35
    Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> wrote:
    Connect to my email server, and the greeting says

    220 ®my-domain-nameŻ ESMTP Sendmail 8.8.8/8.8.8

    That probably causes some security experts to twitch. ;)

    For many years I ran a sendmail server which identified itself as
    Laxative 9.0+tahoe. I don't know if it confused hackers, but it certainly confused and annoyed our security guys.
    --scott
    --
    "C'est un Nagra. C'est suisse, et tres, tres precis."

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Bob Eager@3:633/10 to All on Saturday, October 24, 2026 20:34:09
    On Sat, 24 Oct 2026 15:42:35 -0400, Scott Dorsey wrote:

    Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> wrote:
    Connect to my email server, and the greeting says

    220 ®my-domain-nameŻ ESMTP Sendmail 8.8.8/8.8.8

    That probably causes some security experts to twitch. ;)

    For many years I ran a sendmail server which identified itself as
    Laxative 9.0+tahoe. I don't know if it confused hackers, but it
    certainly confused and annoyed our security guys.

    I heard so much cursing about sendmal at work that I never considered it
    for use at home. It's been postfix for almost as long as I remember (and before that, an excellent third party OS/2 email server).

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Mechanicjay@3:633/10 to All on Sunday, October 25, 2026 06:14:51
    On Fri, 23 Oct 2026 06:20:41 -0000 (UTC), <ldo@nz.invalid> wrote:
    You?ve heard the oft-repeated statistic that PHP powers some 70% of
    the world?s websites. But does it really?

    Reading this (very old) article ><https://eev.ee/blog/2012/07/28/quick-doesnt-mean-dirty/>, I came
    across this:

    Other choice TechCrunch quotes:

    And yet PHP is allegedly used by more than three-quarters of
    all web sites.

    Alleged, indeed. This links to w3techs, which seems to indicate
    that it uses URLs and HTTP headers to detect what language a site
    is written in. What popular language plugin for Apache reports
    itself in the Server header, whether it?s being used for the
    current page or not? mod_php. What doesn?t? Everything else!

    (Addendum: I am told w3techs is even less reliable than appears at
    first glance. They omit the nearly 20% of sites they can?t guess
    at all.)

    Basically, PHP is the one that tends to advertise itself to the world, >whereas the rest don?t bother. PHP also betrays itself because its
    antiquated file-per-page structure means all the URLs end with ?.php?
    (yes, there are ways to hide this, but do you think your typical PHP >programmer could figure that out?).

    In short, it?s a wonder that there are 30% of websites that want to
    advertise what they use, that do bother to point out that they?re
    *not* running PHP.

    Yes, the article writer is a Python fan. And so am I. What?s wrong
    with that? ;)

    I assume it's less than it used to be. That said, I have a crap-ton of PHP in my professional environment and will continue to for a very long time to come.

    Some of that is due to wordpress.

    Some of that is due to a very mature PHP middleware library which some legacy apps sit on top of in additiona to our RESTFUL API. Of course,
    almost all the front-ends are written in Angular these days, but it's sitting ontop of a massive php stack.


    --
    Sent from my Personal DECstation 5000/25

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Scott Dorsey@3:633/10 to All on Sunday, October 25, 2026 08:18:43
    Bob Eager <throwaway0008@eager.cx> wrote:
    On Sat, 24 Oct 2026 15:42:35 -0400, Scott Dorsey wrote:
    Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> wrote:
    Connect to my email server, and the greeting says

    220 ®my-domain-nameŻ ESMTP Sendmail 8.8.8/8.8.8

    That probably causes some security experts to twitch. ;)

    For many years I ran a sendmail server which identified itself as
    Laxative 9.0+tahoe. I don't know if it confused hackers, but it
    certainly confused and annoyed our security guys.

    I heard so much cursing about sendmal at work that I never considered it
    for use at home. It's been postfix for almost as long as I remember (and >before that, an excellent third party OS/2 email server).

    Sendmail did everything you would ever want to do including all kinds of
    weird gateway arrangements which today are no longer needed due to almost universal IP connectivity. Being able to do everything has good points
    but it also has very, very bad points. But I did get to dance with Eric
    Allman at Usenix once.
    --scott


    --
    "C'est un Nagra. C'est suisse, et tres, tres precis."

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Oregonian Haruspex@3:633/10 to All on Friday, October 30, 2026 16:18:51
    Pretty much every router out there uses PHP for its web management console. Cable modems. Most anything embedded that has a web console really. This is going to be a disaster in the long run because a lot of that stuff never
    gets updated.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, October 30, 2026 23:03:12
    On Fri, 30 Oct 2026 16:18:51 -0000 (UTC), Oregonian Haruspex wrote:

    Pretty much every router out there uses PHP for its web management
    console.

    One reason why this surprises me, besides the general sadness of PHP,
    is that such a device could usefully take advantage of features that
    PHP cannot handle.

    For example, a basic function on anything you might want to connect to
    a network is a ?ping? command for testing basic connectivity (using
    ICMP ECHO packets).

    On a command-line device (e.g. a Linux box), ?ping? is an interactive
    tool that gives you a running display of the responses coming back in
    (or not) as the ECHO packets go out.

    To emulate this on a web-based interface, you need to ability to

    1) start a ping sequence going out
    2) keep dynamically updating the web page as responses come back (or
    non-responses get marked as timeouts)
    3) stop the sequence at any time.

    This is hard to do with the basic HTTP request/response paradigm.
    So what you get instead is something clunky like

    1) Enter number of pings desired
    2) Click Start button
    3) Stare at a frozen page while waiting for the ping sequence to complete
    and actually update the page
    4) View results.

    But it is quite easy to make things more interactive if you can add
    WebSocket connections to the mix. But that requires your
    web-management app to be running its own event loop, and the
    traditional mod_php (or PHP-FPM, if you prefer) model doesn?t allow
    this sort of flexibility.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richard Kettlewell@3:633/10 to All on Saturday, October 31, 2026 10:49:53
    Lawrence D?Oliveiro <ldo@nz.invalid> writes:
    Oregonian Haruspex wrote:
    Pretty much every router out there uses PHP for its web management
    console.

    One reason why this surprises me, besides the general sadness of PHP,

    Historically its security reputation was abysmal[1], and based on recent
    events it seems that this remains justified. I think any organization
    using it would benefit from reviewing their technology selection
    processes, and ensuring sure their security team is adequately empowered
    to say ?no? and have it stick.

    [1] https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

    To emulate this on a web-based interface, you need to ability to

    1) start a ping sequence going out
    2) keep dynamically updating the web page as responses come back (or
    non-responses get marked as timeouts)
    3) stop the sequence at any time.

    This is hard to do with the basic HTTP request/response paradigm.
    So what you get instead is something clunky like

    1) Enter number of pings desired
    2) Click Start button
    3) Stare at a frozen page while waiting for the ping sequence to complete
    and actually update the page
    4) View results.

    But it is quite easy to make things more interactive if you can add
    WebSocket connections to the mix. But that requires your
    web-management app to be running its own event loop, and the
    traditional mod_php (or PHP-FPM, if you prefer) model doesn?t allow
    this sort of flexibility.

    No need to add websockets to the mix, browsers are quite happy to render slow-arriving responses HTTP incrementally. I can?t speak for PHP but
    the clunky output you describe is not a necessary consequence of the
    HTTP design.

    --
    https://www.greenend.org.uk/rjk/

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)