Is there php equivalent of mongrel? I do not want to install Apache, just to view a simple template.
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.
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
mongrel2 looks promising!
, , , HTML.
php /path/to/file.php > /path/to/output.html
- Photon (http://www.photon-project.com), .
Source: https://habr.com/ru/post/1746863/More articles:How to read a text document in Matlab - file-ioviewstate and text box in asp.net - asp.netПолучение Omni для работы над vim 7.2 на окнах - pythonweb browser gets slow or unanswered after several ajax calls - performancePHP mysql -... AND column = 'anything' ...? - functionHow to select a folder using ASP.NET - asp.netEclipse Java plugin development - programmatically save all project files - javawriting XML using Xerces 3.0.1 and C ++ on windows - c ++Exception in the Xerces two-line program - c ++Best practice for creating an auxiliary method of a business object - memory-managementAll Articles