Php web server equivalent mongrel?

Is there php equivalent of mongrel? I do not want to install Apache, just to view a simple template.

+3
source share
4 answers

This is possible starting with php 5.4: http://php.net/manual/en/features.commandline.webserver.php

Starting with PHP 5.4.0, the CLI SAPI provides an embedded web server.

This web server is for development purposes only and should not be used in production.

To run it:

$ cd ~/public_html
$ php -S localhost:8000
+1
source

mongrel2 looks promising!

+2
source

, , , HTML.

php /path/to/file.php > /path/to/output.html
+1

- Photon (http://www.photon-project.com), .

0

Source: https://habr.com/ru/post/1746863/


All Articles