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 Link to comment https://forums.phpfreaks.com/topic/182064-file_get_contents-cant-get-it-to-work/ 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. Link to comment https://forums.phpfreaks.com/topic/182064-file_get_contents-cant-get-it-to-work/#findComment-960411 Share on other sites More sharing options...
elias Posted November 18, 2009 Author Share Posted November 18, 2009 thansk cags!!! Link to comment https://forums.phpfreaks.com/topic/182064-file_get_contents-cant-get-it-to-work/#findComment-960417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.