File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ php \- PHP Command Line Interface 'CLI'
42
42
.LP
43
43
\fB php \fP [options] \fB \- a \fP
44
44
.LP
45
+ .B php
46
+ [options] \- S
47
+ .IR addr:port
48
+ [\- t
49
+ .IR docroot ]
50
+ .LP
45
51
.SH DESCRIPTION
46
52
\fB PHP \fP is a widely\- used general\- purpose scripting language that is especially suited for
47
53
Web development and can be embedded into HTML. This is the command line interface
@@ -78,7 +84,13 @@ and therefore reading from
78
84
.B STDIN
79
85
explicitly changes the next input line or skips input lines.
80
86
.LP
81
- If none of \- r \- f \- B \- R \- F or \- E is present but a single parameter is given
87
+ PHP also contains an embedded web server for application development purpose. By using the \- S option where
88
+ .B addr:port
89
+ point to a local address and port PHP will listen to HTTP requests on that address and port and serve files from the current working directory or the
90
+ .B docroot
91
+ passed by the \- t option.
92
+ .LP
93
+ If none of \- r \- f \- B \- R \- F \- E or \- S is present but a single parameter is given
82
94
then this parameter is taken as the filename to parse and execute (same as
83
95
with \- f). If no parameter is present then the standard input is read and
84
96
executed.
@@ -263,6 +275,20 @@ after processing all input lines
263
275
Output HTML syntax highlighted source
264
276
.TP
265
277
.PD 0
278
+ .B \-\- server \fI addr:port \fP
279
+ .TP
280
+ .PD 1
281
+ .B \- S \fI addr:port \fP
282
+ Start embedded Webserver on the given local address and port
283
+ .TP
284
+ .PD 0
285
+ .B \-\- docroot \fI docroot \fP
286
+ .TP
287
+ .PD 1
288
+ .B \- t \fI docroot \fP
289
+ Specify the document root to be used by the embedded web server
290
+ .TP
291
+ .PD 0
266
292
.B \-\- version
267
293
.TP
268
294
.PD 1
You can’t perform that action at this time.
0 commit comments