Re: CLI Web Server customization

From: Date: Wed, 06 Nov 2013 02:45:16 +0000
Subject: Re: CLI Web Server customization
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70024@lists.php.net to get a copy of this message
Hi Kevin, On Wed, Nov 6, 2013 at 10:06 AM, Kevin Ingwersen <ingwie2000@googlemail.com>wrote: > I am also curios about something else. Back in some time, the PHP manual > read that the HTTP server is "for development only". The problem is, I do > not want to package an apache webserver into the bundle - or do some nodejs > scripting for some webserver. I'd like to stay on a PHP basis. "For development only" note is there because cli server crash means stopped service. If there is watch dog that restart cli server, then it's ok to use with any purpose as long as users don't care for restrictions/stability/security. (For instance, daemon tools by DJB may be used as good watch dog.) I think no one objects making cli server more like full featured web server. Pull requests will be welcomed. Anyway, the original author was made cli server to be used like Mongrel in Ruby. That's the main reason of "for development only" besides the early stage of cli server development. Current manual http://php.net/manual/en/features.commandline.webserver.php states "This web server is designed for developmental purposes only, and should not be used in production." at the beginning of the page. It may be too much now. How about make it a note some thing like this? "Note: Build-in web server is intended for web application development. Use in production environment is discouraged." Any comments? -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#70024) next »