Re: command-line PHP and suppressing headers - help

From: Daniel Tryba (news_comp.lang.php_at_canopus.nl)
Date: 01/03/04


Date: Sat, 3 Jan 2004 03:43:38 +0000 (UTC)

Phil Powell <soazine@erols.com> wrote:
> How do I suppress the lines PHP normally delivers to stdout (your browser)
> if I am doing command-line PHP?

$ php -h
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
  -C Do not chdir to the script's directory
  -c <path> Look for php.ini file in this directory
  -a Run interactively
  -d foo[=bar] Define INI entry foo with value 'bar'
  -e Generate extended information for debugger/profiler
  -z <file> Load Zend extension <file>.
  -l Syntax check only (lint)
  -m Show compiled in modules
  -i PHP information
  -h This help

(or something really similar depending on php version (4.1.2 above))

-- 
  Daniel Tryba


Relevant Pages

  • Re: how to run scripts after a page has already loaded and been sent to a users browser?
    ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
    (alt.php)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the default ... so if you want to use one of the html builders or one of the more elaberate ...
    (alt.os.linux.suse)