🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.misc
Article #165

Re: Is PHP Really That Popular?

#165
From: Richard Kettlewell
Date: Sat, 31 Oct 2026 10:49
44 lines
2951 bytes
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/
Technical Details
Message-ID: <wwvwlqy2lgu.fsf@LkoBDZeT.terraraq.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mail
References: <11beubp$1h9da$1@dont-email.me> <11c2g1b$da1n$1@dont-email.me> <11c37ng$lfc1$6@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!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.uk!not-for-mail
From: Richard Kettlewell <invalid@invalid.invalid>
Newsgroups: comp.misc
Subject: Re: Is PHP Really That Popular?
Date: Sat, 31 Oct 2026 10:49:53 +0000
Organization: A poorly-installed InterNetNews site
Message-ID: <wwvwlqy2lgu.fsf@LkoBDZeT.terraraq.uk>
References: <11beubp$1h9da$1@dont-email.me> <11c2g1b$da1n$1@dont-email.me>
	<11c37ng$lfc1$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.uk:172.17.207.6";
	logging-data="131456"; mail-complaints-to="usenet@innmantic.example.com"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:GlT62UpSS8Z6FIYi5W72HGQbU68=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
     F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
     +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO