Re: Command line args HELP!!!

From: Date: Wed, 18 Jul 2001 09:23:49 +0000
Subject: Re: Command line args HELP!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58415@lists.php.net to get a copy of this message
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" <procacci@procacci.net> wrote in message news:3B556201.1E87CF84@procacci.net... > Hey all, > I tried passing an argument to a php script that had a plus sign (+) > in one of the arguments. Observe the following: > > <sciptname> > > 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 >

« previous php.general (#58415) next »