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.