Php webtags: Difference between revisions

19 bytes added ,  19:56, 20 April 2020
m
Line 177: Line 177:
Some people consider XML is too complicated and a long winded way to represent variables (they would say languages like PHP are easier for humans to read), but XML was the way that Steve Loft chose to implement the Weather Diary feature in Cumulus 1, so if you want to include whether snow is falling or lying (or the text entered into the diary) in your web pages you must use a routine that reads XML within the PHP you write if you are still using Cumulus 1.
Some people consider XML is too complicated and a long winded way to represent variables (they would say languages like PHP are easier for humans to read), but XML was the way that Steve Loft chose to implement the Weather Diary feature in Cumulus 1, so if you want to include whether snow is falling or lying (or the text entered into the diary) in your web pages you must use a routine that reads XML within the PHP you write if you are still using Cumulus 1.


Before leaving the subject of XML it is worth recording that XML is considered as the best approach for the future by many (for example the WMO and ICAO have specified a XML and geographical location based approach for reporting weather conditions at airports and for some years have been persuading those running airports to swap from METAR in traditional alphanumeric characters. Those were introduced when the shortness of the code was critical for easy transmission by telex). The new approach is not designed for human observers and pilots to read the weather reports, but it makes it easier for computer driven flying to take account of changing weather conditions.
Before leaving the subject of XML it is worth recording that XML is considered as the best approach for the future by many (for example the WMO and ICAO have specified a XML and geographical location based approach for reporting weather conditions at airports and for some years have been persuading those running airports to swap from METAR in traditional alphanumeric characters. Those were introduced when the shortness of the code was critical for easy transmission by telex). The new approach is not designed for human observers and pilots to read the weather reports, but being machine readable makes it easier for computer driven flying to take account of changing weather conditions.
 


== Option 2: PHP array or Multiple PHP Variables ==
== Option 2: PHP array or Multiple PHP Variables ==
5,838

edits