Skip to content

Instantly share code, notes, and snippets.

View nezamy's full-sized avatar

Mahmoud Elnezamy nezamy

View GitHub Profile
@nezamy
nezamy / static.php
Created June 5, 2020 23:07 — forked from ezimuel/static.php
Swoole HTTP static file server example
<?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([
@nezamy
nezamy / ipc-2017-slides.md
Created October 11, 2017 15:31
Slides from the International PHP Conference Spring 2017