Skip to content

Commit d900382

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
2 parents 4633e07 + 6f560b0 commit d900382

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

sapi/cli/php.1.in

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH PHP 1 "2010" "The PHP Group" "Scripting Language"
1+
.TH PHP 1 "2013" "The PHP Group" "Scripting Language"
22
.SH NAME
33
php \- PHP Command Line Interface 'CLI'
44
.SH SYNOPSIS
@@ -42,6 +42,12 @@ php \- PHP Command Line Interface 'CLI'
4242
.LP
4343
\fBphp \fP[options] \fB\-a\fP
4444
.LP
45+
.B php
46+
[options] \-S
47+
.IR addr:port
48+
[\-t
49+
.IR docroot ]
50+
.LP
4551
.SH DESCRIPTION
4652
\fBPHP\fP is a widely\-used general\-purpose scripting language that is especially suited for
4753
Web development and can be embedded into HTML. This is the command line interface
@@ -78,7 +84,13 @@ and therefore reading from
7884
.B STDIN
7985
explicitly changes the next input line or skips input lines.
8086
.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
8294
then this parameter is taken as the filename to parse and execute (same as
8395
with \-f). If no parameter is present then the standard input is read and
8496
executed.
@@ -263,6 +275,20 @@ after processing all input lines
263275
Output HTML syntax highlighted source
264276
.TP
265277
.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
266292
.B \-\-version
267293
.TP
268294
.PD 1
@@ -435,7 +461,7 @@ contributors all around the world.
435461
.SH VERSION INFORMATION
436462
This manpage describes \fBphp\fP, version @PHP_VERSION@.
437463
.SH COPYRIGHT
438-
Copyright \(co 1997\-2010 The PHP Group
464+
Copyright \(co 1997\-2013 The PHP Group
439465
.LP
440466
This source file is subject to version 3.01 of the PHP license,
441467
that is bundled with this package in the file LICENSE, and is

0 commit comments

Comments
 (0)