diff options
author | Johannes Schlüter <johannes@php.net> | 2013-03-24 17:32:30 +0100 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2013-03-24 17:32:30 +0100 |
commit | 6f560b0487b48d8364a2077b97e661fd5107054e (patch) | |
tree | 1b67afde972835e8e5c7ebbcfc87979ef9fa2939 /sapi/cli | |
parent | de71f435d8b4e30539284c73bd910f8dcc9e8d98 (diff) | |
download | php-git-6f560b0487b48d8364a2077b97e661fd5107054e.tar.gz |
Document embedded server options in manpage
Diffstat (limited to 'sapi/cli')
-rw-r--r-- | sapi/cli/php.1.in | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/sapi/cli/php.1.in b/sapi/cli/php.1.in index 3ca10704d8..0e9d07ac77 100644 --- a/sapi/cli/php.1.in +++ b/sapi/cli/php.1.in @@ -42,6 +42,12 @@ php \- PHP Command Line Interface 'CLI' .LP \fBphp \fP[options] \fB\-a\fP .LP +.B php +[options] \-S +.IR addr:port +[\-t +.IR docroot ] +.LP .SH DESCRIPTION \fBPHP\fP is a widely\-used general\-purpose scripting language that is especially suited for Web development and can be embedded into HTML. This is the command line interface @@ -78,7 +84,13 @@ and therefore reading from .B STDIN explicitly changes the next input line or skips input lines. .LP -If none of \-r \-f \-B \-R \-F or \-E is present but a single parameter is given +PHP also contains an embedded web server for application development purpose. By using the \-S option where +.B addr:port +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 +.B docroot +passed by the \-t option. +.LP +If none of \-r \-f \-B \-R \-F \-E or \-S is present but a single parameter is given then this parameter is taken as the filename to parse and execute (same as with \-f). If no parameter is present then the standard input is read and executed. @@ -263,6 +275,20 @@ after processing all input lines Output HTML syntax highlighted source .TP .PD 0 +.B \-\-server \fIaddr:port\fP +.TP +.PD 1 +.B \-S \fIaddr:port\fP +Start embedded Webserver on the given local address and port +.TP +.PD 0 +.B \-\-docroot \fIdocroot\fP +.TP +.PD 1 +.B \-t \fIdocroot\fP +Specify the document root to be used by the embedded web server +.TP +.PD 0 .B \-\-version .TP .PD 1 |