Running the built in server

suggest change

php -S localhost:80

PHP 7.1.7 Development Server started at Fri Jul 14 15:11:05 2017

Listening on http://localhost:80

Document root is C:\projetos\repgeral

Press Ctrl-C to quit.

This is the simplest way to start a PHP server that responds to request made to localhost at the port 80.

The -S tells that we are starting a webserver.

The localhost:80 indicates the host that we are answering and the port. You can use other combinations like:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


PHP built-in server:
* Running the built in server

Table Of Contents
2 Arrays
4 Types
10 Cookies
14 JSON
15 SOAP
17 cURL
19 XML
21 Traits
35 UTF-8
36 URLs
38 PHPDoc
41 Loops
44 Closur
72 YAML
77 Cache
78 Streams
81 PDO
82 SQLite3
83 Sockets
87 MongoDB
93 IMAP
94 Redis
95 Imagick
102 APCu
106 PHP built-in server
108 PSR