\+ 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+yyyy >> >> > >Best 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. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php