3 ms·
"it doesn't have it's own baked-in web server afaik" It does, actually: hhvm -m server -p 8080 Uses proxygen. Proxygen is pretty cool, actually. Even does ht
by tyingq 7y ago
"it doesn't have it's own baked-in web server afaik"
It does, actually: hhvm -m server -p 8080
Uses proxygen.
Proxygen is pretty cool, actually. Even does http/2 & https, and is suitable for production use. I'm somewhat surprised nobody's done the work to link it with PHP, Perl, etc, to provide what node.js does for js.
Edit: Also, on compiling PHP, there's a pretty good start here: https://github.com/ircmaxell/php-compiler/blob/master/README.md https://github.com/ircmaxell/php-compiler/blob/master/README.... The FFI functionality in PHP 7.4, plus the internal use of an AST in php7.x, are what made it possible. Missing lots of functionality, but a neat proof of concept.
- merb 7y agophp also has one: php -S localhost:8000 -t foo https://www.php.net/manual/de/features.commandline.webserver.php https://www.php.net/manual/de/features.commandline.webserver... since 5.x (not production ready tough)