RE: [PHP] Using php as a scripting language within cron jobs?
| From: | Dan Hardiker | Date: | Fri, 17 May 2002 13:05:19 +0000 |
| Subject: | RE: [PHP] Using php as a scripting language within cron jobs? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98069@lists.php.net to get a copy of this message | ||
> #!/path.to/php -q
>
> I'd like to suggest the -q option for PHP shell scripts, which I rely
> on every day.
Ssssshhhhh!! We dont want to give away *everything* heh... bah ... well I
might as well give you the rest of the info.
[14:03:50][dhardiker@amnesiac]:~$ php -?
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
[14:03:52][dhardiker@amnesiac]:~$
everything there is pretty self explanitory... as is the reason for using
option q ;)
--
Dan Hardiker [dhardiker@staff.firstcreative.net]
ADAM Software & Systems Engineer