Php webtags: Difference between revisions

306 bytes added ,  16:37, 26 June 2020
m
Line 15: Line 15:


== Customised web pages ==
== Customised web pages ==
*If you are customising your web site, then you might choose to use script running on your web server to produce the HTML you want on your web site, (instead of asking Cumulus to process templates and upload the resulting output web pages), but you still need a way to get the derived values that Cumulus calculates locally into those web based scripts:
 
*If you are customising your web site, then you don't need to follow the way that the Cumulus supplied standard web pages work.
*Just as a reminder standard ones are written as template files that Cumulus has to process and upload each time new data is to be displayed.
 
 
*You can write your own web pages that stay on your web server, and do not have to be uploaded again for each update.
*However, those web pages still need to get data from Cumulus somehow.
*#this page describes a way to have '''Cumulus process all the web tags''' that it defines, in one or more template files that are uploaded at the appropriate time interval for the updating of the web tags contained,
*#this page describes a way to have '''Cumulus process all the web tags''' that it defines, in one or more template files that are uploaded at the appropriate time interval for the updating of the web tags contained,
*#and make the resulting values available in '''script variables''' for you to use anywhere on your web site in other files
*#and make the resulting values available in '''script variables''' for you to use anywhere on your web site in other files.
*# these other files can be resident on your web server, they never need to be updated locally (and uploaded) as they do not need to be processed first locally.
*#When someone wants to view your customised web pages, the web server simply copies into the web page the latest script variables and generates HTML that has up to date values.
*#You can even use Ajax (a JavaScript that runs in Client's browser) to update that HTML with new values at regular intervals (when a new script variable files has been uploaded).


= Using PHP script =
= Using PHP script =
5,838

edits