Re: Command Line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, 12 Dec 2004 09:15:46 -0600
"Travis Conway" <travis@xxxxxxxxxxxxxxxxx> 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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux