~clint-fewbar/ubuntu/natty/php5/merge-5.3.3-3

« back to all changes in this revision

Viewing changes to sapi/cli/php.1.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-26 14:09:58 UTC
  • mfrom: (1.1.16 upstream) (0.3.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100126140958-sos69zwa00q2nt19
Tags: 5.2.12.dfsg.1-2ubuntu1
* Merge from debian testing.  Remaining changes:
  - debian/control, debian/rules: Disable a few build dependencies and
    accompanying binary packages which we do not want to support in main:
    + firebird2-dev/php5-interbase (we have a seperate php-interbase source)
    + libc-client/php5-imap (we have a seperate php-imap source)
    + libmcrypt-dev/php5-mcrypt (seperate php-mcrypt source)
    + readline support again, now that the libedit issue is fixed.
  - debian/control: Add build dependency: libedit-dev (>= 2.9.cvs.20050518-1)
    CLI readline support.
  - debian/rules:
    + Correctly mangle PHP5_* macros for lpia
  - debian/control:
    + Rename Vcs-Browser & Vcs-Git to XS-Original-Vcs-Browser & XS-Original-Vcs-Git (LP: #323731).
  - debian/control: Move php5-suhoshin to Suggests.
  - debian/rules: Fix broken symlink for pear.
  - main/php_version.h: updated with Ubuntu version info
  - debian/patches/series: Re-enable the 033-we_WANT_libtool.patch patch
  - debian/rules, debian/source_php5.py: Install apport hook. 
* Dropped patches: CVE-2009-3557.patch and CVE-2009-3558.patch, no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
You can access the input line by \fB$argn\fP. While processing the input lines
70
70
.B $argi 
71
71
contains the number of the actual line being processed. Further more
72
 
the paramters \-B and \-E can be used to execute 
 
72
the parameters \-B and \-E can be used to execute 
73
73
.IR code
74
74
(see \-r) before and
75
75
after all input lines have been processed respectively. Notice that the
304
304
.IR name
305
305
Shows configuration for extension
306
306
.B name
 
307
.TP
 
308
.B \-\-ini
 
309
Show configuration file names
307
310
.SH FILES
308
311
.TP 15
309
312
.B php\-cli.ini
315
318
cannot be found.
316
319
.SH EXAMPLES
317
320
.TP 5
318
 
\fIphp -r 'echo "Hello World\\n";'\fP
 
321
\fIphp \-r 'echo "Hello World\\n";'\fP
319
322
This command simply writes the text "Hello World" to standard out.
320
323
.TP
321
324
\fIphp \-r 'print_r(gd_info());'\fP
339
342
Using this PHP command you can count the lines being input.
340
343
.TP
341
344
\fIphp \-R '@$l+=count(file($argn));' \-E 'echo "Lines:$l\\n";'\fP
342
 
In this example PHP expects each input line beeing a file. It counts all lines 
 
345
In this example PHP expects each input line being a file. It counts all lines 
343
346
of the files specified by each input line and shows the summarized result. 
344
347
You may combine this with tools like find and change the php scriptlet.
345
348
.TP
372
375
.B http://www.php.net/manual/
373
376
.PD 1
374
377
.P
375
 
A nice introduction to PHP by Stig Bakken can be found here:
376
 
.PD 0
377
 
.P
378
 
.B http://www.zend.com/zend/art/intro.php
379
 
.PD 1
380
378
.SH BUGS
381
379
You can view the list of known bugs or report any new bug you
382
380
found at: