>> 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
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
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 command line
parameters ??
_
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
> 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
enue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 3:00 PM
To: PHP General
Subject: [PHP] argv and argc
The other day, I was reading the docs and I just happened
across something that em
]]
Sent: Tuesday, February 19, 2002 3:00 PM
To: PHP General
Subject: [PHP] argv and argc
The other day, I was reading the docs and I just happened across something
that emulated argc and argv. However, I just spent 2 hours in the docs and
can't find it. Is there something in PHP that you ca
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
The other day, I was reading the docs and I just happened
across something that emulated argc and argv. However,
I just spent 2 hours in the docs and can't find it.
Is there something in PHP that you can use to get this info?
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To un
ion
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "PACKER, Steffan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 7:02 PM
Subject: [PHP] argv
> the $argv is meant to contain all the arguments sent to the script. I
the $argv is meant to contain all the arguments sent to the script. I need
to get access to these but when I try to access them I can't!
if I just use echo($argv) the only output is 'Array'
All I am expecting to find for the purpose of my script is a five letter
code, not a name/value pair.
Can
11 matches
Mail list logo