|
1 |
| -.TH PHP 1 "2010" "The PHP Group" "Scripting Language" |
| 1 | +.TH PHP 1 "2013" "The PHP Group" "Scripting Language" |
2 | 2 | .SH NAME
|
3 | 3 | php \- PHP Command Line Interface 'CLI'
|
4 | 4 | .SH SYNOPSIS
|
@@ -42,6 +42,12 @@ php \- PHP Command Line Interface 'CLI'
|
42 | 42 | .LP
|
43 | 43 | \fBphp \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 | \fBPHP\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 \fIaddr:port\fP |
| 279 | +.TP |
| 280 | +.PD 1 |
| 281 | +.B \-S \fIaddr:port\fP |
| 282 | +Start embedded Webserver on the given local address and port |
| 283 | +.TP |
| 284 | +.PD 0 |
| 285 | +.B \-\-docroot \fIdocroot\fP |
| 286 | +.TP |
| 287 | +.PD 1 |
| 288 | +.B \-t \fIdocroot\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
|
@@ -435,7 +461,7 @@ contributors all around the world.
|
435 | 461 | .SH VERSION INFORMATION
|
436 | 462 | This manpage describes \fBphp\fP, version @PHP_VERSION@.
|
437 | 463 | .SH COPYRIGHT
|
438 |
| -Copyright \(co 1997\-2010 The PHP Group |
| 464 | +Copyright \(co 1997\-2013 The PHP Group |
439 | 465 | .LP
|
440 | 466 | This source file is subject to version 3.01 of the PHP license,
|
441 | 467 | that is bundled with this package in the file LICENSE, and is
|
|
0 commit comments