I wrote a simple script to get content of a page. When I am running it on Apache server, I'm getting an error:
file_get_contents is not defined
Apache 2.2, PHP 5.3.9. Here is the code:
$url = "http://steamcommunity.com/market/priceoverview/?appid=730&country=PL¤cy=3&market_hash_name=Desert%20Eagle%20%7C%20Blaze%20(Minimal%20Wear)";
$json = file_get_contents($url);
$price = json_decode($json);
alert(price.lowest_price);
How to fix it?