Re: command line argument vs. urlencode ?
| From: | Renato Lins | Date: | Sat, 31 Aug 2002 12:26:39 +0000 |
| Subject: | Re: command line argument vs. urlencode ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114762@lists.php.net to get a copy of this message | ||
\+ does not work too, php treat command line arguments as a POST/GET , so I should urlencode/urldecode, I would like to know if there is a alway to turn this behavior off.
Thanks any way.
Renato
Richard Lynch wrote:
Any one know why the "+" (plus sign) is not passed as argument to $argv when calling a php script from linux shell ? php test.php 123 xxx+yyyyBest guess is + is a special character in the shell, so you need: php test.php 123 "xxx+yyyy" Or maybe even so far as: php test.php 123 "xxx\+yyyy" You'd have to read "man sh" to be 100% sure why + is special.