parser error : Start tag expected, '<' not found

后端 未结 4 717
攒了一身酷
攒了一身酷 2020-12-19 00:46

I am using PHP for the first time. I am using the php sample for uploading image on ebay sandbox. I am getting the following error on running the PHP file:

P         


        
4条回答
  •  清酒与你
    2020-12-19 01:17

    The code you refer to has this line:

    //curl_setopt($connection, CURLOPT_HEADER, 1 ); // Uncomment these for debugging
    

    it seems like you uncommented these. This will result in getting the HTTP header in your response. Which is OK for debugging, but it will create an XML parse error in simplexml_load_string.

    Either comment it out again or put 0 as its value.

提交回复
热议问题