faqts : Computers : Programming : Languages : PHP : General Information

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 14 people (64%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

How can I get a list of switches for PHP.EXE?

May 4th, 2000 10:58
Stanley Jointer, II, stanley.jointer@iconsoftware.com


Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] | {<file> [args...]}
  -q       Quiet-mode.  Suppress HTTP Header output.
  -s       Display colour syntax highlighted source.
  -f<file> Parse <file>.  Implies `-q'
  -v       Version number
  -p       Pretokenize a script (creates a .php3p file)
  -e       Execute a pretokenized (.php3p) script
  -c<path> Look for php3.ini file in this directory
  -i       PHP information
  -h       This help
(version for this list is 3.0.15

You can get the switches to come up from the command line by going to 
the PHP directory and typing in "php -h" or "php -{bad switch}" 
(basically any switch that isn't in the list above)