Clarification: Anything post PHP 4.1 will work. I use the superglobal $_SERVER 
for the command line input, and those were introduced in 4.1.

On Monday 13 March 2006 15:21, Matthew Walker wrote:
> Either or. I don't use any version specific functions.
>
> On Monday 13 March 2006 15:18, Bryan Sant wrote:
> > On 3/13/06, Matthew Walker <[EMAIL PROTECTED]> wrote:
> > > Realized I didn't write this to accept commandline input, so I tweaked
> > > it.
> > >
> > > Usage:
> > >         ./wc.php <file to count>
> > >
> > > Assumes:
> > >         /usr/bin/php
> > >         /usr/share/dict/words
> >
> > PHP5 or PHP4?
> >
> > -Bryan
> >
> > /*
> > PLUG: http://plug.org, #utah on irc.freenode.net
> > Unsubscribe: http://plug.org/mailman/options/plug
> > Don't fear the penguin.
> > */

-- 
Matthew Walker
ForeverGreen
[EMAIL PROTECTED]
Work: (801) 655-5500
Home: (801) 491-2079

Random Quote:
Brief History Of Linux (#6)
California Goldrush

Now we skip ahead to California in 1849, when the discovery of gold at
Sutter's Mill set the stage for countless prospectors (Fortyniners) to
travel West in the hopes to get-rich-quick by finding gold in them thar
hills.

What's the connection with Linux, you ask? Well, the same thing happened
exactly 150 years later, in 1999. The discovery of Venture Capital at Red
Hat set the stage for countless investors (Ninetyniners) to travel West in
the hopes to get-rich-quick by finding hot IPOs in them thar Linux
companies.

Attachment: pgpEaeNq3h7CM.pgp
Description: PGP signature

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to