Re: [PHP] PHP command line vars

2003-11-18 Thread Shawn McKenzie
Thanks! The link was just what I needed. -Shawn "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shawn McKenzie wrote: > > > I have a script that I want to run on the windows command line, and it is > > working fine. What I want to do is pass vars to the script wh

Re: [PHP] PHP command line vars

2003-11-18 Thread Marek Kilimajer
Shawn McKenzie wrote: I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run it, example: php script.php $var=hello The example will not work, command line arguments are traditionaly passed in the form of:

[PHP] PHP command line vars

2003-11-18 Thread Shawn McKenzie
I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run it, example: php script.php $var=hello I have read the docs but can't find the syntax to pass these in. Also, how to retrieve them in the script? argv