File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,15 @@ point to a local address and port PHP will listen to HTTP requests on that addre
92
92
.B docroot
93
93
passed by the \- t option.
94
94
.LP
95
+ If a PHP file is provided to the command line when the
96
+ built-in web server is used, it will be used as the router script. This script
97
+ will be started at each HTTP request. The script output 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
95
104
If none of \- r \- f \- B \- R \- F \- E or \- S is present but a single parameter is given
96
105
then this parameter is taken as the filename to parse and execute (same as
97
106
with \- f). If no parameter is present then the standard input is read and
You can’t perform that action at this time.
0 commit comments