@@ 184-189 (lines=6) @@ | ||
181 | //var_dump($result); die(""); |
|
182 | $isxml=FALSE; |
|
183 | $jxml=""; |
|
184 | if (strpos($result, '<?xml')>-1) |
|
185 | { |
|
186 | $xml = simplexml_load_string($result); |
|
187 | $jxml = json_encode($xml); |
|
188 | $isxml = TRUE; |
|
189 | } |
|
190 | ||
191 | $code = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
|
192 | 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); |