3 ms·
Show HN: PhpOverWebsocket
- the-dude 6y agoWhatCouldPossiblyGoWrong™
- slk500 6y agoInteresting, thx
- deedubaya 6y agohttps://github.com/tonysm/turbo-laravel https://github.com/tonysm/turbo-laravel
- colecut 6y agowow thanks for this
- notretarded 6y agoHTML over the wire? So... a Hypertext Preprocessor you say? We really have come full circle haven't we.
- cmeacham98 6y agoThis is really cool! I'll have to use it in my next PHP project.
- heleninboodler 6y agoNeat hack. Not sure why you'd want to do this, but I don't usually let that stop me either. :D
- atymic 6y agoAlso 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/ https://laravel-livewire.com/
- tyingq 6y agoLooks 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);