The API to execute Pannalesports (it's a data-grabbing API anyway)
I use
SimpleXMLElement
Convert data to XML format so I could intercept it. But there is always an error after a period of execution
P.s. I'm going to curl up with curl.
curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $IP);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);
(This is not really the point)
The focus is on the following error message
I use try, SimpleXMLElement
when wrong, put data and $e print_r
come out as after
Exception Object ([message:protected] = String could not is parsed as XML [string:private] = [code:protected] =&G T 0 [file:protected] =/home/ns/www/gamble/mlb.php [line:protected] = [trace:private] = = Array ([0] = ARR Ay ([file] =/home/ns/www/gamble/mlb.php [line] = [function] = __construct [Class] = SimpleXMLElement [Type] = = [Args] = Array ([0] =))) 2014-10_01 20:02:12exception Object ([message:protected] = String could not being parsed as XML [string:private] = [code:protected] + 0 [file:protected] =/home/ns/www/gamb le/mlb.php [line:protected] = [trace:private] = = Array ([0] = = Array ([file] = =/home/ns/www/gamble/mlb. php [Line] = [function] = __construct [class] + simplexmlelement [type] = = [Args] = Array ([0 ]))) warning:simplexmlelement::__construct (): Entity:line 1:parser error:space required after the public I Dentifier In/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warnin G:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line, Warning:simplexmlelement::__construct ( ): Entity:line 6:parser error:opening and ending tag mismatch:hr line 5 and BODY in/home/ns/www/gamble/mlb.php on Li Ne warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__construct (): Entity:line 6:parser Error:opening and ending tag mismatch:body line 4 and HTML in/home/ns/www/gamble/mlb.php on line Warning:simplexml Element::__construct (): in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): ^ in/home/ ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): Entity:line 7:parser error:premature End of Data in tag HEAD line 2 in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warn Ing:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): Entity:line 7:parser error:premature end of data in tag HTML Line 2 in/home/ns/www/gamble/mlb.php on Lin E warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line 66
$e errors are as follows
Service UnavailableHTTP Error 503. The service is unavailable.
Is there a way to release or debug?
Reply content:
The API to execute Pannalesports (it's a data-grabbing API anyway)
I use SimpleXMLElement
the format of turning data into XML so that I could intercept it. But there is always an error after a period of execution
P.s. I'm going to curl up with curl.
curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $IP);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);
(This is not really the point)
The focus is on the following error message
I use try, SimpleXMLElement
when wrong, put data and $e print_r
come out as after
Exception Object ([message:protected] = String could not is parsed as XML [string:private] = [code:protected] =&G T 0 [file:protected] =/home/ns/www/gamble/mlb.php [line:protected] = [trace:private] = = Array ([0] = ARR Ay ([file] =/home/ns/www/gamble/mlb.php [line] = [function] = __construct [Class] = SimpleXMLElement [Type] = = [Args] = Array ([0] =))) 2014-10_01 20:02:12exception Object ([message:protected] = String could not being parsed as XML [string:private] = [code:protected] + 0 [file:protected] =/home/ns/www/gamb le/mlb.php [line:protected] = [trace:private] = = Array ([0] = = Array ([file] = =/home/ns/www/gamble/mlb. php [Line] = [function] = __construct [class] + simplexmlelement [type] = = [Args] = Array ([0 ]))) warning:simplexmlelement::__construct (): Entity:line 1:parser error:space required after the public I Dentifier In/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warnin G:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line, Warning:simplexmlelement::__construct ( ): Entity:line 6:parser error:opening and ending tag mismatch:hr line 5 and BODY in/home/ns/www/gamble/mlb.php on Li Ne warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__construct (): Entity:line 6:parser Error:opening and ending tag mismatch:body line 4 and HTML in/home/ns/www/gamble/mlb.php on line Warning:simplexml Element::__construct (): in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): ^ in/home/ ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): Entity:line 7:parser error:premature End of Data in tag HEAD line 2 in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warn Ing:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): Entity:line 7:parser error:premature end of data in tag HTML Line 2 in/home/ns/www/gamble/mlb.php on Lin E warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line 66
$e errors are as follows
Service UnavailableHTTP Error 503. The service is unavailable.
Is there a way to release or debug?
HTTP error 503 is a server internal error.