I try to get content from another site by using file_get_contents
but I always get "failed to open stream: HTTP request failed!" allow_url_fopen is on, and I have tested with my firewall off. But it still happens, what other reasons can it be?
EDIT: Here is the full message Warning: file_get_contents(http://yemto.deviantart.com/): failed to open stream: HTTP request failed! in D:\xampp\htdocs\deviantart\webcam\img.php on line 15
And code
//Load the page into a DOMDocument
$file = file_get_contents(strToLower("http://".$user.".deviantart.com/"));//TO-DO <-- if deivantart name is empty, it crashes
$doc = new DOMDocument();
@$doc -> loadHTML($file);