I'm not familiar with -r, when was/will it be 
implemented, 4.2.0 or later?  If you know about 
it, add it to commandline docs.

Regarding $argv, directives to consider are:

  register_argc_argv : argv/argc existing at all
  register_globals   : $argv vs $_SERVER['argv']

Awhile ago someone asked to have $argv exist 
despite what register_globals says but not sure 
what came from that.  Maybe this has all changed 
since the CLI/4.2.0 changes ... *shrug*

Regarding your examples below, they don't make 
sense to me can you please expand on the meaning 
of -r ?  

Regards,
Philip Olson


On Wed, 13 Mar 2002, Marcus [iso-8859-1] B�rger wrote:

> I know of cause. But we have included -r and argument passing see examples:
> 
> php -r 'echo "Hello Wolrd!";'
> 
> php -r 'echo $argv[1];' 'Hello World'
> 
> php -r 'echo join($argv," ");' Hello World
> 
> who knows better than me?
> 
> marcus
> 
> At 21:32 13.03.2002, Slawomir Pucia wrote:
> > > I do not want to break the structure of the documentation but
> > > it is missing the cli version. I considere expaning
> > > chapters/install.commandline.xml
> > > but wasn't sure with document structure. So if someeone
> > > sets up the necessary files i can write what is worth
> > > knowing about CLI like argument passing and running
> > > code directly.
> >
> >Take a look at php.net/commandline first.
> >
> >slawek-
> 


Reply via email to