: This article mainly introduces the server response: erroronline19atcolumn1: Extracontentattheendofthedocument. For more information about PHP tutorials, see. The following error occurs when the php app interface interacts with the server during development and data is returned.
Return data in JSON format. if the Firefox browser displays
Display the returned data in XML format and Firefox browser
Returned data in JSON and XML format, which is displayed in the Cheetah Browser
The reasons may include the following:
(1) in this case, the server has returned a response, but the returned format is incorrect.
Check whether the returned data is in the required format, such as JSON format and header ("Content-Type: text/json ");
(2) If an output occurs during normal return, the returned result is incorrect.
(3) it should be noted that the XML document declaration can only appear at the beginning of the document.
The above introduces the server response: error on line 19 at column 1: Extra content at the end of the document, including the content, if you are interested in PHP tutorials.