I am sending a patch with some corrections to PHP man-page.
Jakub Vrana
Index: php.1.in =================================================================== RCS file: /repository/php-src/sapi/cli/php.1.in,v retrieving revision 1.4 diff -u -r1.4 php.1.in --- php.1.in 10 Jun 2003 20:03:45 -0000 1.4 +++ php.1.in 20 Dec 2003 20:39:45 -0000 @@ -283,15 +283,15 @@ .B php.ini The standard configuration file will only be used when .B php\-cli.ini -cannot not be found. +cannot be found. .SH EXAMPLES .TP 5 \fIphp -r 'echo "Hello World\\n";'\fP -This command simply writes the text "Hello World" to stabdard out. +This command simply writes the text "Hello World" to standard out. .TP \fIphp \-r 'print_r(gd_info());'\fP This shows the configuration of your gd extension. You can use this -to easily check which imag formats you can use. If you have any +to easily check which image formats you can use. If you have any dynamic modules you may want to use the same ini file that php uses when executed from your webserver. There are more extensions which have such a function. For dba use: @@ -299,12 +299,12 @@ \fIphp \-r 'print_r(dba_handlers(1));'\fP .RE .TP -\fIphp \-R'echo strip_tags($argn)."\\n";\fP +\fIphp \-R 'echo strip_tags($argn)."\\n";'\fP This PHP command strips off the HTML tags line by line and outputs the -result. To see how it works you can first look at the following PHP command ' -\fIphp \-d html_errors=1 \-i\fP' which uses PHP to output HTML formatted +result. To see how it works you can first look at the following PHP command +\'\fIphp \-d html_errors=1 \-i\fP\' which uses PHP to output HTML formatted configuration information. If you then combine those two -\'\fIphp \.\.\.|php \.\.\.\fP\' you\'ll see what happens. +\'\fIphp \.\.\.|php \.\.\.\fP\' you'll see what happens. .TP \fIphp \-E 'echo "Lines: $argi\\n";'\fP Using this PHP command you can count the lines being input.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php