| @@ 175-181 (lines=7) @@ | ||
| 172 | ||
| 173 | $isxml=FALSE; |
|
| 174 | $jxml=""; |
|
| 175 | if (strpos($result, '<?xml')>-1) |
|
| 176 | { |
|
| 177 | $xml = simplexml_load_string($result); |
|
| 178 | //$jxml = json_encode($xml); |
|
| 179 | $jxml=self::object2array($xml); |
|
| 180 | $isxml = TRUE; |
|
| 181 | } |
|
| 182 | ||
| 183 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
|
| 184 | curl_close($ch); |
|
| @@ 269-274 (lines=6) @@ | ||
| 266 | ||
| 267 | $isxml=FALSE; |
|
| 268 | $jxml=""; |
|
| 269 | if (strpos($result, '<?xml')>-1) |
|
| 270 | { |
|
| 271 | $xml = simplexml_load_string($result); |
|
| 272 | $jxml = json_encode($xml); |
|
| 273 | $isxml = TRUE; |
|
| 274 | } |
|
| 275 | ||
| 276 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
|
| 277 | curl_close($ch); |
|