$x=file_get_contents('http://forum3.ru/cgi/shop/ishop.pl?cmd=show_tovar&code=87661&xhr=1'); echo $x; 

Stopped displaying anything (

Could the administrator forbid to take information from his site with pom. file_get_contents ()?

  • From the Denver this request works ... On another site from the hosting this request works ... And from the host to this site it gives out emptiness - Only_fallen

1 answer 1

Yes, this is possible, in php, ini, you can allow and prohibit the opening of the "files" by the http protocol, write to the support ...

Or do you have a site from which you pull info? if so, no ...

  • one
    Why not?) IP, Referer, first-time-setting-cookie ...) But in this case it’s hardly the case, I agree - Sh4dow
  • one
    <small> <b> Sh4dow </ b> decided to be smart? :) <br> and before writing I checked ... </ small> - Zowie
  • 3
    Well, I have such a setup that every question is here - for future generations, including, because the strict answer to the question posed is “yes, I could, but not in your case.” Consider clarification to your answer) And plus as a symbol of peaceful intentions)) - Sh4dow
  • one
    But I am inconsistent :) <br> There where there is little file_get_contents - it is used curl ^^ <br> Anyway, you can’t hide the information ... You can ponder the hemorrhoids of everyone, but in the end, everything else is parsed ... - Zowie
  • But there are thoughts - what's the matter? Just worked, the script worked, and then rraz and gives the void .... - Only_fallen