🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.misc
Article #164

Re: Is PHP Really That Popular?

#164
From: Lawrence D’Oliveiro
Date: Fri, 30 Oct 2026 23:03
38 lines
2713 bytes
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.
Technical Details
Message-ID: <11c37ng$lfc1$6@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11beubp$1h9da$1@dont-email.me> <11c2g1b$da1n$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups: comp.misc
Subject: Re: Is PHP Really That Popular?
Date: Fri, 30 Oct 2026 23:03:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <11c37ng$lfc1$6@dont-email.me>
References: <11beubp$1h9da$1@dont-email.me> <11c2g1b$da1n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Oct 2026 23:03:13 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="703873"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+kURz2Vz2P3r4+2EDZCvIz"; posting-host="a2d4bf737ef4dcecc3ecbe7a7a4a744c"
User-Agent: Pan/0.165 (Kostiantynivka)
Cancel-Lock: sha1:fPsfbFYHO4USMansAdOKEigU5Bw= sha256:JKp7v1q4QmxgRV2kvG/R3bFWbp0MDe8+9F1rJjeVZik=
	sha1:d6EkXcTKLDDc99mz7+4l75AfjgI= sha256:bV/I6HddpgIsTqV2OGac2rTx2/b/1lyJ/aF+S4WwETs=