simplexml_load_file problem!
Posted: Mon Jul 10, 2006 6:23 am
hello
can anyone help me with this output when using the simplexml_load_file function in php5?
Warning: simplexml_load_file(http://api.search.yahoo.com/WebSearchSe ... esults=100) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/mediama/public_html/product.php on line 14
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://api.search.yahoo.com/WebSearchSe ... esults=100" in /home/mediama/public_html/product.php on line 14
Source: http://www.media-market.co.uk/product.p ... B000B83Z4O
However, the weird thing is, earlier in the script...
$request = "http://webservices.amazon.co.uk/onca/xm ... Id=".$code;
$response = simplexml_load_file($request);
works absolutely fine!!
any ideas?
can anyone help me with this output when using the simplexml_load_file function in php5?
Warning: simplexml_load_file(http://api.search.yahoo.com/WebSearchSe ... esults=100) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/mediama/public_html/product.php on line 14
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://api.search.yahoo.com/WebSearchSe ... esults=100" in /home/mediama/public_html/product.php on line 14
Source: http://www.media-market.co.uk/product.p ... B000B83Z4O
However, the weird thing is, earlier in the script...
$request = "http://webservices.amazon.co.uk/onca/xm ... Id=".$code;
$response = simplexml_load_file($request);
works absolutely fine!!
any ideas?