Skip to content

Commit c5cd0a8

Browse files
Fix GH-10964: Improve man page about the built-in server
1 parent 6e468bb commit c5cd0a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sapi/cli/php.1.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ point to a local address and port PHP will listen to HTTP requests on that addre
9292
.B docroot
9393
passed by the \-t option.
9494
.LP
95+
If a PHP file is provided to the command line when the
96+
built-in web server is used, it will be ued as the router script. This script
97+
will be started at each HTTP request. The script output will is returned to the
98+
browser, unless the router script returns the
99+
.B false
100+
value. If so, the built-in server falls back to the default behaviour, returning
101+
the requested resource as-is by looking-up the files relative to the document
102+
root specified by the \-t option, if provided.
103+
.LP
95104
If none of \-r \-f \-B \-R \-F \-E or \-S is present but a single parameter is given
96105
then this parameter is taken as the filename to parse and execute (same as
97106
with \-f). If no parameter is present then the standard input is read and

0 commit comments

Comments
 (0)