Re: [PHP] $argv[] ??

2002-03-19 Thread Kancha .
>> On Tuesday 19 March 2002 16:18, Kancha . wrote: > > I'm using php 4.1.0. In earlier versions of php i > > could access parameters passed throught command > line > > as $argv[1], $argv[2] and so on. With the version > that > > i'm usign now it says undefined variable. > > > > What is the new me

Re: [PHP] $argv[] ??

2002-03-19 Thread Jason Wong
On Tuesday 19 March 2002 16:18, Kancha . wrote: > I'm using php 4.1.0. In earlier versions of php i > could access parameters passed throught command line > as $argv[1], $argv[2] and so on. With the version that > i'm usign now it says undefined variable. > > What is the new method of accessign co

RE: [PHP] argv and argc

2002-02-19 Thread Martin Towell
IF it is deprecated in 4.1.0, then what are we meant to use in place of it? Martin -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:04 AM To: 'Chris Boget'; PHP General Subject: RE: [PHP] argv and argc Good day, The a

Re: [PHP] argv and argc

2002-02-19 Thread Chris Boget
> look in the manual under predefined variables: > language.variables.predefined.html Sorry, I should have specified for a function, not a script. I found those vars, just couldn't find the same for a function. Just found it, though: func_num_args(); func_get_arg(); :) Chris -- PHP General

RE: [PHP] argv and argc

2002-02-19 Thread Darren Gamble
Good day, The array $argv contains what you're looking for (I'm not sure if this is deprecated in 4.1.0, though) so you'll have to flip through the manual and release notes. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Al

RE: [PHP] argv and argc

2002-02-19 Thread Hunter, Ray
Here are all the predefined variables that are in PHP. You will notice that there is an argc and argv here. http://www.php.net/manual/en/language.variables.predefined.php Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]]

RE: [PHP] argv and argc

2002-02-19 Thread Rick Emery
look in the manual under predefined variables: language.variables.predefined.html -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 4:00 PM To: PHP General Subject: [PHP] argv and argc The other day, I was reading the docs and I just happen

Re: [PHP] argv

2001-11-23 Thread Andrey Hristov
var_dump($argv); $argv is an array. Don't expect if you coded in C that this is pointer to the first so you possibly want to do echo of the first in the array. instead do : foreach($argv as $param_name => $param_value){ // do your stuff here } Regards, Andrey Hristov IcyGEN Corporation http://w