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 | |
define('TIME_NOW', time()); | |
define('DS', DIRECTORY_SEPARATOR); | |
define('BASE_PATH', strtr(__DIR__, '\\', '/')); | |
clearstatcache(); | |
$pathimpl = function() { | |
return BASE_PATH . '/' . ltrim(strtr(implode(DS, func_get_args()), '\\', '/'), '/'); |
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 | |
$addr = '127.0.0.1'; | |
$port = 10080; | |
$host = 'localhost'; | |
function hello_world($args = array()) { | |
$OS = PHP_OS; //strtolower(substr(PHP_OS, 0, 3)) == 'win'; | |
$phpversion = phpversion(); |
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 | |
$addr = '127.0.0.1'; | |
$port = 10080; | |
// Use: curl -vv "http://127.0.0.1:10080/" | |
// 0 prints dots in infinite response (on client's side), for concurrent test | |
// 1 close connection after server/client negotiation |
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 | |
ini_set('display_errors', 0); | |
ini_set('display_startup_errors', 0); | |
ini_set('html_errors', 0); | |
ini_set('output_buffering', 0); | |
ini_set('zlib.output_compression', 0); | |
ini_set('implicit_flush', 1); | |
ini_set('ignore_user_abort', 1); |