I am having problems with the following:
$xml4 = simplexml_load_file($fulllink4, 'SimpleXMLElement', LIBXML_NOWARNING);
$fulllink4 is dynamically generated. Sometimes the URL that is generated inside $fulllink4 is malformed and I get an error as follows :
Warning: simplexml_load_file(http://xxxx.com): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in D:\xxxx.php on line 90
I had read that by adding the ", 'SimpleXMLElement', LIBXML_NOWARNING);" part to the line that it should suppress any errors, but it does not.
Does anyone know how I can completely suppress all errors generated by that line?
Thank you in advance.