Date: 01/21/00
- Next message: Randy Meinert: "[PHPLIB] Passing "sess" using frames"
- Previous message: Roman Kalenjuk: "[PHPLIB] Arguments to PHP script."
- In reply to: Roman Kalenjuk: "[PHPLIB] Arguments to PHP script."
- Next in thread: garyb <email protected>: "Re: [PHPLIB] Arguments to PHP script."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's buried in the docs somewhere, but not obvious.
You need the shebang:
#! /usr/local/bin/php -q
and then use the $argc integer, and the $argv[] array.
$argv[0] is the command, natch.
I use this for testing my web pages as well.
And remember, many error messages from php have html around them.
-sam
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Randy Meinert: "[PHPLIB] Passing "sess" using frames"
- Previous message: Roman Kalenjuk: "[PHPLIB] Arguments to PHP script."
- In reply to: Roman Kalenjuk: "[PHPLIB] Arguments to PHP script."
- Next in thread: garyb <email protected>: "Re: [PHPLIB] Arguments to PHP script."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

