[PHP] Command line args HELP!!!
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+managementpg=qkl=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]
RE: [PHP] Command line args HELP!!!
On 18-Jul-2001 Paul A. Procacci wrote: 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+managementpg=qkl=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. No, it is one arg q='task management'; the plus is interpreted as a space. If you want to keep the (+) symbol use web?q=task%2bmanagement ... also look at urlencode/decode() functions. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- 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]