Hacker News new | ask | show | jobs
Show HN: PhpOverWebsocket (github.com)
36 points by nemiah 1930 days ago
6 comments

This is really cool! I'll have to use it in my next PHP project.
wow thanks for this
Also see Livewire. I'm personally not a fan, but it's a interesting direction and definitely has its advantages. It's also unfortunately rather horrible on slow connections (imagine waiting 500ms for your fancy dropdown to open).

I think the end result will be a mix of javascript for localised interactivity and html over the wire for server side stuff (ex. datatables).

https://laravel-livewire.com/

Looks like a neat hack, but it also looks like it has path traversal issues, so be careful with it.

  $url = $request->url;
  $path = $this->rootDir.$url;
  $env = [ ... "SCRIPT_FILENAME" => $path,...]
  $process = proc_open('php-cgi', $descriptorspec, $pipes, $cwd, $env);
Neat hack. Not sure why you'd want to do this, but I don't usually let that stop me either. :D
Interesting, thx
WhatCouldPossiblyGoWrongâ„¢