Re: Command Line
| From: | - Edwin - | Date: | Sun, 12 Dec 2004 16:40:12 +0000 |
| Subject: | Re: Command Line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204114@lists.php.net to get a copy of this message | ||
Hi,
On Sun, 12 Dec 2004 09:15:46 -0600
"Travis Conway" <travis@pinkbunnysuit.com> wrote:
> How do you reference command line arguments in php?
>
> i.e., chkmd5.php file.md5
>
> I am wanting to reference file.md5. Since the output of md5sum is
> not in the RFC I am having to manually parse each md5 and detect
> whether it is in Win32, Linux, or BSD format.
I'm not sure what you meant by that (since an md5 checksum is an md5
checksum) but...
> And since php has good built in md5() support it helps out.
I think you're looking for "argv":
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
PS
Btw, it's "php-geNeral" and not "php-geMeral" ;)
--
- E - on SUSE 9.1 | blackbox 0.65 | copperwalls was here ;)
"Your eyes saw even the embryo of me, and in your book
all its parts were down in writing." - Psalm 139:16