PHP Built in server

suggest change

Versions

[{“Name”:“5.4”,“GroupName”:“PHP 5.x”},{“Name”:“5.5”,“GroupName”:“PHP 5.x”},{“Name”:“5.6”,“GroupName”:“PHP 5.x”},{“Name”:“7.0”,“GroupName”:“PHP 7.x”},{“Name”:“7.1”,“GroupName”:“PHP 7.x”}]

Introduction

Learn how to use the built in server to develop and test your application without the need of other tools like xamp, wamp, etc.

Parameters

Column | Column | —— | —— | -S | Tell the php that we want a webserver | <hostname>:<port> | The host name and the por to be used | -t | Public directory | <filename> | The routing script |

Remarks

An example of router script is:

<?php
// router.php
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) {
    return false;    // serve the requested resource as-is.
}  //the rest of you code goes here.

Feedback about page:

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


PHP built-in server:
* PHP 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