elias Posted November 18, 2009 Share Posted November 18, 2009 Hi leute I am trying to use file_get_contents() to download and analyse a website. But it seems not to work for all webs. When I try a basic html page, the page is reproduces with the below code. But, particularly, for this web, it does not work - to try pls remove -remove- : $handle = file_get_contents("http://www.hisp-remove-anianet.tv/index.html"); print "number = $number<br />"; any guidance, welcomed :-) thanks elias Quote Link to comment Share on other sites More sharing options...
cags Posted November 18, 2009 Share Posted November 18, 2009 The site is setup to block the request. You might have more luck working with cURL, but it's rather more complicated. Edit: No guarantees though. Quote Link to comment Share on other sites More sharing options...
elias Posted November 18, 2009 Author Share Posted November 18, 2009 thansk cags!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.