I have been running my simple dom script on a variety of pages for weeks, and never have I come across any issues. Now, today, when I try:
$html = file_get_html('http://www.sony.co.za/product/dsc-wx10');
I get:
( ! ) Warning: file_get_contents(http://www.sony.co.za/product/dsc-wx10)
[function.file-get-contents]: failed to open stream: HTTP request failed!
in C:\XXXXXXX\simplephpdom\simple_html_dom.php on line 70
What could possibly cause me to not be able to enter the code above with success, when the following works:
$html = file_get_html('http://www.google.com');
$html = file_get_html('http://www.whatever.com');
I am able to access the Sony page via my browser. And as far as I understand, the code above connects to port 80, just like I do. So I find it hard to believe I'm being blocked. And also, I was blocked from Day 1.
Any ideas what could be causing this?