例如
url 爲 http://mywebsite.com/index.php?a=1&b=2&c=3
web形式下訪問url地址,使用$_GET是可以獲取到所有的參數
然而在linux下
curl http://mywebsite.com/index.php?a=1&b=2&c=3
$_GET只能獲取到參數a
由於url中有&,其他參數獲取不到,在linux系統中& 會使進程系統後臺運行
必須對&進行下轉義才能$_GET獲取到所有參數
curl http://mywebsite.com/index.php?a=1\&b=2\&c=3
不然容易導致403Forbidden問題,曾經因爲這個困擾了半天、、、
原帖地址:http://blog.csdn.net/sunbiao0526/article/details/6831327