| Need help |
| (1/1) |
|
DaculaWeather: Of course nothing goes wrong while I'm at home... Brian... HELP! Error on line 112 of testtags.php. It has to do with this alert ($NOAAEvent is line 112) I can remove this section and everything works. Parse error: syntax error, unexpected T_STRING in /hsphere/local/home/bruecksteve/daculaweather.com/testtags.php on line 112 $NOAAEvent = 'Heat Advisory Current Watches, Warnings and Advisories for Gwinnett (GAZ034) Georgia Issued by the National Weather Service</title><link href='http://alerts.weather.gov/cap/wwaatmget.php?x=GAZ034&y=0'/><entry><id>http://alerts.weather.gov/cap/wwacapget.php?x=GA124CB3040B70.HeatAdvisory.124CB73CFB5CGA.FFCNPWFFC.59f4c0f27063c1b39260a5b564d2759c</id><updated>2012-06-30T16:12:00-04:00</updated><published>2012-06-30T16:12:00-04:00</published><author><name>w-nws.webmaster@noaa.gov</name></author><title>Heat Advisory '; // NOAA Watch/Warning/Advisory $noaawarningraw = ' GAZ034 Heat Advisory ...DANGEROUS HEAT WAVE ACROSS NORTH AND CENTRAL GEORGIA TO CONTINUE THROUGH THE WEEKEND... ...HEAT ADVISORY NOW IN EFFECT UNTIL 9 PM EDT SUNDAY... * LOCATIONS...MOST OF NORTH AND PARTS OF WEST CENTRAL GEORGIA... GENERALLY WEST AND SOUTH OF A ETON TO GAINESVILLE LINE AND NORTHWEST FROM A LINE NEAR COLUMBUS TO GAINESVILLE....CODE RED AIR QUALITY ALERT IS IN EFFECT FOR ATLANTA FOR SUNDAY JULY 1... THE GEORGIA DEPARTMENT OF NATURAL RESOURCES...ENVIRONMENTAL PROTECTION DIVISION HAS ISSUED A CODE RED (UNHEALTHY FOR MANY PEOPLE) AIR QUALITY ALERT FOR ATLANTA FOR SUNDAY JULY 1.'; // NOAA RAW watch/warning/advisory |
|
Weather Display: looks like more of someone who is an expert in the scripts to be able to help out and pinpoint what is wrong (I am not that expert, sorry) |
|
DaculaWeather: I removed those two lines from the testtags.txt file and it started working again. but why it was happening I don't know. |
|
saratogaWX: It's the single-quote marks in the URL included in the response that causes the issue $NOAAEvent = 'Heat Advisory Current Watches, Warnings and Advisories for Gwinnett (GAZ034) Georgia Issued by the National Weather Service</title><link href='http://alerts.weather.gov/cap/wwaatmget.php?x=GAZ034&y=0'/><entry><id>http://alerts.weather.gov/cap/wwacapget.php?x=GA124CB3040B70.HeatAdvisory.124CB73CFB5CGA.FFCNPWFFC.59f4c0f27063c1b39260a5b564d2759c</id><updated>2012-06-30T16:12:00-04:00</updated><published>2012-06-30T16:12:00-04:00</published><author><name>w-nws.webmaster@noaa.gov</name></author><title>Heat Advisory '; // NOAA Watch/Warning/Advisory You can change the line Code: $NOAAEvent = '%NOAAEvent%'; to Code: $NOAAEvent = "%NOAAEvent%"; and that should remove the error. Nothing in the template set uses $NOAAEvent, so it's also ok to just delete the line :) Best regards, Ken |
|
DaculaWeather: Thanks Ken! I removed the two lines last night after I got desperate! I don't use those either so no harm done. |
| Navigation |
| Message Index |