Lurker News

Comments (168) 20 threads

Show all comments

Showing thread 1 of 20

bilekas6 replies#
This is wild... PHP server with electron client.. I'm genuinely impressed. It's been many years since I worked with PHP. Back in the days before proper namespaces etc. This just blows my mind. What an incredible effort, I will definitely be helping with this project in my free time. We need more crazy projects like this!
doctorpangloss#
“Make games that are fun to make.”
solcloud#
thank you for kind words :)
calvinmorrison1 reply#
Php is basically runtime Java these days. It's so much better than ye olden days
ARandomerDude1 reply#
> Php is basically runtime Java these days

I don't know enough about PHP to understand this comment. Can you elaborate?

mikeweiss4 replies#
I think they're just saying its a lot like Java if Java was a interpreted language and not a compiled language.

Continue this thread — 4 replies

treflop1 reply#
You could have actually made this 15 years ago! As a kid I pretty much only knew PHP and Visual Basic so I made CLI servers in PHP (…lol)

You could make asynchronous servers using socket_select(), which was added in PHP 4.1.
https://www.php.net/manual/en/function.socket-select.php
There was also a third party extension that added threads to PHP 15 years ago, although it was buggy.

diggan1 reply#
> There was also a third party extension that added threads to PHP 15 years ago, although it was buggy.

Reminds me of ReactPHP (no, not that React) that allowed you to do non-blocking I/O in PHP back in like 2012-2013 sometime. Maybe that's the library you're referring to actually?
https://github.com/reactphp/reactphp

fefferkorn#
Yeah, same,.. Real time game server written in PHP is really interessting. I also know PHP from the old days and now only from certain CMS systems, but not realtime projects. Im amazed! Nice! :)))
Sincere6066#
electron eh? pass.