justnobody
New Member
I am using the following PHP:\[code\]$xml = simplexml_load_file($request_url) or die("url not loading");\[/code\]I use:\[code\]$status = $xml->Response->Status->code;\[/code\]To check the status of the response. 200 bening everything is ok, carry on.However if I get a 403 access denied error, how do I catch this in PHP so I can return a user friendly warning?