Weather Software > Other Weather Software

Saratoga Template Parse Error

(1/1)

WxNut:
This is my first attempt and this is new territory for me.  Just made all my php config changes to the Saratoga Templates and uploaded to my test website and I am getting the following parse error:

"Parse error: syntax error, unexpected 'tz' (T_STRING) in /home/rosshome/www/test/Settings.php on line 112"

Any thoughts?   

   Line 112 in the php file is in red in below excerpt:

############################################################################
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']         = 'USA Website with PHP & AJAX';
$SITE['copyr']         = '© ' . gmdate("Y",time()) . ', Weathervane Weather';
$SITE['location']       = 'Montague, Michigan, USA';
$SITE['email']         = 'mailto:postmaster@weathervaneweather.com';
# Station location: latitude, longitude, cityname
$SITE['latitude']      = '43.4217987';    //North=positive, South=negative decimal degrees
$SITE['longitude']      = '-86.3582993';  //East=positive, West=negative decimal degrees
$SITE['cityname']      = 'Montague;

$SITE['tz']          = 'America/New_York'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
// note: date format used for PHP parts only.  Weather software dates are not processed
// except on the astronomy page

Thanks in advance

Tim

dwhitemv:
$SITE['cityname']      = 'Montague;

Missing a terminating quote, should be

$SITE['cityname']      = 'Montague';

WxNut:
Perfect!

Thank you very much!

Tim

Navigation

[0] Message Index

Go to full version