version 1.1.1.3, 2013/07/22 01:32:13
|
version 1.1.1.4, 2013/10/14 08:02:45
|
Line 1
|
Line 1
|
.TH PHP 1 "2013" "The PHP Group" "Scripting Language" |
.TH PHP 1 "2013" "The PHP Group" "Scripting Language" |
.SH NAME |
.SH NAME |
php \- PHP Command Line Interface 'CLI' |
php \- PHP Command Line Interface 'CLI' |
|
.P |
|
php-cgi \- PHP Common Gateway Interface 'CGI' command |
.SH SYNOPSIS |
.SH SYNOPSIS |
.B php |
.B php |
[options] [ |
[options] [ |
Line 18 php \- PHP Command Line Interface 'CLI'
|
Line 20 php \- PHP Command Line Interface 'CLI'
|
.LP |
.LP |
.B php |
.B php |
[options] [\-B |
[options] [\-B |
.IR code ] | .IR begin_code ] |
.B \-R |
.B \-R |
.IR code |
.IR code |
[\-E |
[\-E |
.IR code ] | .IR end_code ] |
[[\-\-] |
[[\-\-] |
.IR args.\|.\|. ] |
.IR args.\|.\|. ] |
.LP |
.LP |
.B php |
.B php |
[options] [\-B |
[options] [\-B |
.IR code ] | .IR begin_code ] |
.B \-F |
.B \-F |
.IR file |
.IR file |
[\-E |
[\-E |
.IR code ] | .IR end_code ] |
[[\-\-] |
[[\-\-] |
.IR args.\|.\|. ] |
.IR args.\|.\|. ] |
.LP |
.LP |
Line 84 and therefore reading from
|
Line 86 and therefore reading from
|
.B STDIN |
.B STDIN |
explicitly changes the next input line or skips input lines. |
explicitly changes the next input line or skips input lines. |
.LP |
.LP |
PHP also contains an embedded web server for application development purpose. By using the \-S option where | PHP also contains an built-in web server for application development purpose. By using the \-S option where |
.B addr:port |
.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 |
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 |
.B docroot |
Line 235 without using script tags
|
Line 237 without using script tags
|
.B \-\-process\-begin \fIcode\fP |
.B \-\-process\-begin \fIcode\fP |
.TP |
.TP |
.PD 1 |
.PD 1 |
.B \-B \fIcode\fP | .B \-B \fIbegin_code\fP |
Run PHP |
Run PHP |
.IR code | .IR begin_code |
before processing input lines |
before processing input lines |
.TP |
.TP |
.PD 0 |
.PD 0 |
Line 262 for every input line
|
Line 264 for every input line
|
.B \-\-process\-end \fIcode\fP |
.B \-\-process\-end \fIcode\fP |
.TP |
.TP |
.PD 1 |
.PD 1 |
.B \-E \fIcode\fP | .B \-E \fIend_code\fP |
Run PHP |
Run PHP |
.IR code | .IR end_code |
after processing all input lines |
after processing all input lines |
.TP |
.TP |
.PD 0 |
.PD 0 |
Line 279 Output HTML syntax highlighted source
|
Line 281 Output HTML syntax highlighted source
|
.TP |
.TP |
.PD 1 |
.PD 1 |
.B \-S \fIaddr:port\fP |
.B \-S \fIaddr:port\fP |
Start embedded Webserver on the given local address and port | Start built-in web server on the given local address and port |
.TP |
.TP |
.PD 0 |
.PD 0 |
.B \-\-docroot \fIdocroot\fP |
.B \-\-docroot \fIdocroot\fP |
.TP |
.TP |
.PD 1 |
.PD 1 |
.B \-t \fIdocroot\fP |
.B \-t \fIdocroot\fP |
Specify the document root to be used by the embedded web server | Specify the document root to be used by the built-in web server |
.TP |
.TP |
.PD 0 |
.PD 0 |
.B \-\-version |
.B \-\-version |