php-built-in-server0.1.4 • Public • Published
Node.js PHP built-in Server
A node.js tool to launch PHP built-in servers.
- php >= 5.4.0 on your system.
$ npm install php-built-in-server
var PHPServer = ;
var server = ;server;server;server;
var server = 'path/to/phpExecutable' '/path/to/php.ini';server;server;// pathes can be absolute or relativesserver;
Show "examples" folder.
- find solution for partial buffering of stderr:
fwrite(fopen('php://stderr', 'w'), 'test');is immediatly receive from PHP but stderr datas coming from server himself is buffured.
If someone knows how to fix this...
- No data is received from the child process to confirm explicitly that the server is listening.
- The stderr of the child process logs all queries, not just errors.
- The stderr seems buffered (show TODO).
Copyright (c) 2013 Valéry Herlaud. Licensed under the MIT license. See the file LICENSE.md in this distribution for more details.