Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
.php Website
Moderator: daj
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
.php Website
Hi Guys,
I have moved my site to a new server and would like to utilise the php functions. Just a question about converting Cumulus pages to .php format. I dont need to send all the standard Cumulus web pages, so in the Internet Settings > Files in Cumulus, I should...
untick "Include Standard Files'
and have Cumulus convert the pages I want to send to my server from .htm to .php.
Is this correct?
Thanks
I have moved my site to a new server and would like to utilise the php functions. Just a question about converting Cumulus pages to .php format. I dont need to send all the standard Cumulus web pages, so in the Internet Settings > Files in Cumulus, I should...
untick "Include Standard Files'
and have Cumulus convert the pages I want to send to my server from .htm to .php.
Is this correct?
Thanks
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
-
Synewave
- Posts: 642
- Joined: Mon 25 Jan 2010 1:55 pm
- Weather Station: Watson W-8681
- Operating System: Raspian
- Location: Brighton, UK
- Contact:
Re: .php Website
Yes that is correct. List your current .htm files in the files page and have the remote names as .php. You need to have process ticked and Ftp ticked.
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: .php Website
Great. Thanks Paul.
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: .php Website
Typically you would have Cumulus process and upload just one file -- the PHP webtags file.
You then have all you PHP files on the server, and the simply reference (include) the webtags file and you can then use those variables in your PHP
I can include an example here if you wish
You then have all you PHP files on the server, and the simply reference (include) the webtags file and you can then use those variables in your PHP
I can include an example here if you wish
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: .php Website
Thanks David,
PHP is still a bit of a mystery to me but then again so was HTML 12 months ago. An example would be great. Happy to see what ever you've got.
Cheers
PHP is still a bit of a mystery to me but then again so was HTML 12 months ago. An example would be great. Happy to see what ever you've got.
Cheers
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: .php Website
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
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..
becomes
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
becomes
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
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");
?>Now you need to look through the whole file changing any cumulus webtags to php variables
example..
Code: Select all
<title><#location> weather</title>Code: Select all
<title><?php echo $location; ?> weather</title><?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>Code: Select all
<td class="site_data" style="text-align: left;"><?php echo $dawn; ?></td>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
-
gemini06720
- Posts: 1700
- Joined: Mon 10 Aug 2009 10:16 pm
- Weather Station: No weather station
- Operating System: No operating system
- Location: World...
Re: .php Website
David, you do realise that the 'webtags' file is quite outdated - it has not been updated in almost a year...daj wrote:The first thing to do it get Cumulus to process and upload the Cumulu webtags in a PHP format. All the details are here Php webtags
For some time now, I have been using two 'webtags' files which contain all the tags produced by Cumulus (last updated on December 30) - unfortunately, because of a change to the format for the variables contain in the tag files, they are completely incompatible with the previous version of the old 'webtags' file.
I would be willing to share the files, but the new format of the variables would involve modifying all the variables in the Cumulus PHP templates...
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: .php Website
as far as I am aware the PHP webtags file is up to date with Cumlulus 1.9.0, however the dates do not tie up as 1.9.0 was in Sept 2010. I will need to look at this.gemini06720 wrote: David, you do realise that the 'webtags' file is quite outdated - it has not been updated in almost a year...![]()
All the new tags for 1.9.1 will be added once it is out of beta. Equally all the webtags are not added to the webtags page yet for the beta version until it is live.
Is there a set of PHP web templates? Nothing on the Wiki. Do yo mean users own templates? I'm not sure what YOUR PHP webtags structure is like, but, as you know, we have in the past tried to keep the webtag name the same as the PHP variable name. Are you saying your variable names differ?I would be willing to share the files, but the new format of the variables would involve modifying all the variables in the Cumulus PHP templates...
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: .php Website
Thanks David,
All seems pretty straight forward. It will give me something to do this weekend.
Thanks again
All seems pretty straight forward. It will give me something to do this weekend.
Thanks again
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.