- PHP 7 Day by thePHP.cc
- From Legacy to Event-Driven by Stefan Priebsch
- The Myth of Untestable Code by Sebastian Bergmann and Sebastian Heuer
- PHP 7: Reality Check by Sebastian Bergmann
- Setting up HTTPS is easy: what are you waiting for? by Arne Blankerts
- Test-Driven Refactoring by Stefan Priebsch
- [UX in Motion: Princ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Simple HTTP static file server using Swoole | |
$host = $argv[1] ?? '127.0.0.1'; | |
$port = $argv[2] ?? 9501; | |
$http = new swoole_http_server($host, $port); | |
// The usage of enable_static_handler seems to produce errors | |
// $http->set([ |