傳的原參數“http://thirdqq.qlogo.cn/g?b=oidb&k=kHRuu5xxTOcXog6lrEMq4A&s=40”
接受的參數“http://thirdqq.qlogo.cn/g?b=oidb&k=kHRuu5xxTOcXog6lrEMq4A&s=40”
‘&’被轉義成了‘&’,
所以 file_get_contents()在獲取內容的時候就報錯了, failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Req
解決辦法:
htmlspecialchars_decode()