Jenny, the 'cumuluswebtags.php' file is released as a text file under the name 'cumuluswebtags.txt' - the file you have downloaded from the Cumulus Wiki is NOT a PHP file until it has been processed by Cumulus and uploaded to a server.
Code: Select all
To create the PHP file you need to adjust the following setting in Cumulus (this is a review to ensure you got everything properly setup):
- from the Cumulus main screen, select the 'Configuration -> Internet';
- on the 'Internet Settings' screen, select the 'Files' tab;
- in a left side box under the 'Local filenames', enter the name 'cumuluswebtags.txt';
- in a right side box under the 'Remote filenames', enter the name 'cumuluswebtags.php';
- place a check mark in the box under 'Process?' and a check mark in the box under 'FTP?'
To ensure that the 'cumuluswebtags.php' file has been created and uploaded, go to your Web site and enter something such:
Code: Select all
http://tzouhalem.net/cumulus/web/cumulustags.php?source=view
...the above link should display the content of my 'cumulustags.php' (it is the same file but just under a different name).
Unless you enter a specific server folder name, the 'cumuluswebtags.php' should be uploaded to the server folder/directory where the other Cumulus weather files are uploaded (files such as 'index.htm', etc.).
In order to produce a PHP file, the '<?php' must be present at the beginning of the file and the '?>' mus be present that the end of the file - otherwise the server's PHP decoder will not recognize the PHP file.
I use TextPad 5.1 for all my htm pages.
I copied the cumuluswebtags.txt to the editor.
Saved it as a .php
Uploaded but as I said it did not process.
Take away the < it does process.
Jenny, you DO NOT and CANNOT save the file and just replace the extension! The 'cumuluswebtags.txt' file has to be processed and uploaded by Cumulus and NOT just by you - this way, Cumulus replaces the tags that are in the files with the proper weather data and then uploads and rename the file to 'cumuluswebtags.php'.
I have just checked your 'cumuluswebtags.php' file using the following link:
http://wairoa.net/weather/cumuluswebtag ... ource=view
The file is incomplete - you must have done something with the original code...
All is working now after a lot of mucking around on another PC and coping across to weather station computer. I have no idea where I went wrong but at least its fixed.
Just checked and the 'cumuluswebtags.php' is still incomplete - it only has 27 line when it should contain 307 lines - my 'cumuluswebtags.txttmp' is at 41K.
May I recommend that you download a new copy of the 'cumuluswebtags.txt' file:
http://wiki.sandaysoft.com/files/cumuluswebtags.txt
Do not edit the file - no editing is required. Do not rename the file - no renaming is required. Place the file in the same folder/directory where the Cumulus templates files (such as 'indexT.htm') are located and proceed with the above mentioned setting of Cumulus.
Please keep me posted on the results...
