I am continuing on my background changing adventure, and even though if I use
www.deadcowz.com/ChangeBackground.phpEverything work and the background changes to what it should.
If I have the Cron job run this same ChangeBackground.php which has 2 includes to get the variables for weather and day or night:
<?php
include 'wucallapi.php';
include 'sunrise-sunset.php';
I get this error emailed to me:
<br />
<b>Fatal error</b>: Call to undefined function: json_decode() in <b>/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/wucallapi.php</b> on line <b>2</b><br />Here is the code at the top, essentially directly from WU.
<?php $json_string = file_get_contents("http://api.wunderground.com/api/3aa3d2f44c50a999/geolookup/conditions/q/VT/Jericho.json");
$parsed_json = json_decode($json_string);
$weather = $parsed_json->{'current_observation'}->{'weather'};
Thank you for any assistance on this.
Phil