[PHP] Re: Command line args HELP!!!

2001-07-18 Thread Martin Harm

The whole string
"Paul A. Procacci" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey all,
> I tried passing an argument to a php script that had a plus sign (+)
> in one of the arguments.  Observe the following:
>
> 
> http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX

The whole string is in $QUERY_STRING (dont now whether encoded or not)
To test this use

as a php-script and pass your params as above.

>
> As it turns out the argument gets split into two seperate arguments, but
> I would like to keep it as one argument.  Does anyone know how to
> accomplish this.  I posted a bug report to bugs.php.net, and they
> responded by telling me to read:
> http://www.php.net/manual/en/language.variables.external.php
>
> But still after searching that page for the information I was looking
> for, nothing seemed to work.  Am I missing something.  Please let me
> know.
>
> Thanks,
> Paul
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Command line args HELP!!!

2001-07-18 Thread elias

argv
Array of arguments passed to the script. When the script is run on the
command line, this gives C-style access to the command line parameters. When
called via the GET method, this will contain the query string.

argc

Contains the number of command line parameters passed to the script (if run
on the command line).

try'em



"Paul A. Procacci" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey all,
> I tried passing an argument to a php script that had a plus sign (+)
> in one of the arguments.  Observe the following:
>
> 
> http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX
>
> As it turns out the argument gets split into two seperate arguments, but
> I would like to keep it as one argument.  Does anyone know how to
> accomplish this.  I posted a bug report to bugs.php.net, and they
> responded by telling me to read:
> http://www.php.net/manual/en/language.variables.external.php
>
> But still after searching that page for the information I was looking
> for, nothing seemed to work.  Am I missing something.  Please let me
> know.
>
> Thanks,
> Paul
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Command line args HELP!!!

2001-07-18 Thread Paul A. Procacci

That is not the problem!  Read below.  This issue was resolved.  It _is_
a bug, and is on the todo list for the php programmers.  :)

Elias wrote:
> 
> argv
> Array of arguments passed to the script. When the script is run on the
> command line, this gives C-style access to the command line parameters. When
> called via the GET method, this will contain the query string.
> 
> argc
> 
> Contains the number of command line parameters passed to the script (if run
> on the command line).
> 
> try'em
> 
> "Paul A. Procacci" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hey all,
> > I tried passing an argument to a php script that had a plus sign (+)
> > in one of the arguments.  Observe the following:
> >
> > 
> > http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX
> >
> > As it turns out the argument gets split into two seperate arguments, but
> > I would like to keep it as one argument.  Does anyone know how to
> > accomplish this.  I posted a bug report to bugs.php.net, and they
> > responded by telling me to read:
> > http://www.php.net/manual/en/language.variables.external.php
> >
> > But still after searching that page for the information I was looking
> > for, nothing seemed to work.  Am I missing something.  Please let me
> > know.
> >
> > Thanks,
> > Paul
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]