Edit report at https://bugs.php.net/bug.php?id=62732&edit=1
ID: 62732 Updated by: yohg...@php.net Reported by: k at webnfo dot com Summary: [Feature Request]Built-in TCP server -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Built-in web server PHP Version: 5.4.5 Block user comment: N Private report: N New Comment: How could you determine which script to be executed? HTTP specify resource to be fetched via URL, but not for general TCP servers. I don't see how this feature could be useful while users may specify whatever server PHP scripts as command line argument. Previous Comments: ------------------------------------------------------------------------ [2012-08-07 00:55:57] k at webnfo dot com I meant commandline stuff compared to the newly added php built-in webserer. ------------------------------------------------------------------------ [2012-08-05 20:11:51] ajf at ajf dot me Do you mean a commandline thing like -S? Or do you mean something like this? tcp_server("localhost", 9001, function ($addr, $sock) { // do stuff here }); ------------------------------------------------------------------------ [2012-08-03 03:32:34] k at webnfo dot com Description: ------------ TCP server can handle much more protocols not only on http. Like smtp, etc. Just accept the tcp message and invoke php to handle the other parts. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62732&edit=1