Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

When opening webservice xml detect errors

$
0
0
Hello,

Is it possible to detect errors or response time when opening XML?


PHP Code:
$z = new XMLReader;

$z->open('http://www.domain.com/webservicexml'); //If response time is longer than 5 seconds, it redirects to another page.

$doc = new DOMDocument


Thank you so much.

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>