Ok, here's a quick tour of PHP! Fasten your seatbelt....
The first thing to do it get Cumulus to process and upload the Cumulu webtags in a PHP format. All the details are here ...
http://wiki.sandaysoft.com/a/Php_webtags
Basically this is a list of variables you can then use in PHP pages, containing the data from Cumulus.
Now, copy indexT.htm from Cumulus folder and call it index.php
You now need to edit index.php in something like notepad++ (good, free text editor)
Right at the top of the file add the following lines
Code: Select all
<?php
require_once("cumuluswebtags.php");
?>
This tells the web server to also read the contents of the webtags file when it is opening the index.php file
Now you need to look through the whole file changing any cumulus webtags to php variables
example..
Code: Select all
<title><#location> weather</title>
becomes
Code: Select all
<title><?php echo $location; ?> weather</title>
Notice how the Cumulus webtag for the location has changed. What I am now saying to the web server is ....
<?php - what follows next is PHP code
echo $location; - echo means print/display and $location is the variable from the webtags file containing the stations location
?> -- we are finished with PHP, what comes next is normal HTML
Another example, a few lines down
Code: Select all
<td class="site_data" style="text-align: left;"><#dawn></td>
becomes
Code: Select all
<td class="site_data" style="text-align: left;"><?php echo $dawn; ?></td>
You need to do this for each of the htm files. Upload the PHP files to your webserver; Cumulus never needs to process these PHP files so do not include them in Cumulus files. You should only be processing and upload the webtags file as that is the once that needs updated each time by Cumulus.
I would suggest you create a folder on your webserver and upload them there to test it.
Note, PHP only works on a web server, so you can not see PHP files working locally on your PC (unless you install a webserver locally!)
Later I can give you a filly working index.php file if you wish