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

php and cumulus question

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Michael_Wright
Posts: 140
Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:

php and cumulus question

Post by Michael_Wright »

I have installed cumulus php file witch is working on my site http://www.stormsearchers.net76.net/cum ... ource=view why is it comming up like this http://www.stormsearchers.net76.net/index.php can somehelp please mike
Image
The Future you have Not seen but the presants shall all ways be.
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: php and cumulus question

Post by water01 »

Looks like you have done an include i.e. <?php include "cumuluswebtags.php";?> right in the middle of an HTML page.

That is never going to work the HTML will just try to resolve the PHP code. To use PHP webtags you have to convert your HTML pages to PHP pages.

Also are you sure that PHP has been enabled on your server as "view=sce" which is the correct command to see a formatted cumuluswebtags.php on the version you are using does not produce a formatted output.
David
Image
Michael_Wright
Posts: 140
Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:

Re: php and cumulus question

Post by Michael_Wright »

what your saying is in the console of cumulus/configuration i have to do it in there is that correct
Image
The Future you have Not seen but the presants shall all ways be.
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: php and cumulus question

Post by water01 »

No I am afraid not. If you want to use PHP to run your web pages you have to convert all the pages to use PHP webtags and to use PHP to render the screens.

PHP is a server based language that turns to PHP into HTML on the server and then sends it to the Browser on your computer. Your current pages are the standard HTML pages that Steve provides and they use standard HTML commands which are sent by the server and formatted by your browser.

So for instance your indexT.htm file that is uploaded by Cumulus with the correct webtags substituted as index.htm from your computer would no longer be required in a index.php file as that file would use cumuluswebtags.php on the server to substitute the webtags on the server and then send the formatted page to your browser.

It is a completely different way of rendering a web page that uses a language that can contain logic to make decisions on how to render a page which is usually the reason for using PHP.

I would suggest that you read and try a tutorial such as http://www.w3schools.com/php/ because you have to be able to program in PHP and understand how to use the webtags within PHP before you attempt to move from HTML to PHP.
David
Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: php and cumulus question

Post by sfws »

Michael_Wright wrote:can some ONE help please mike
water01 wrote:So for instance your indexT.htm file that is uploaded by Cumulus with the correct webtags substituted as index.htm from your computer would no longer be required in a index.php file as that file would use cumuluswebtags.php on the server to substitute the webtags on the server and then send the formatted page to your browser.
Not sure if this will help Michael to see how PHP can be used with customised Cumulus pages or confuse him http://wiki.sandaysoft.com/a/Customised ... -processor
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: php and cumulus question

Post by water01 »

I think, with due respect to Michael, that someone who expects that uploading cumuluswebtags.php and then set switch in Cumulus's configuration hasn't quite grasped the basics concepts of PHP.
David
Image
Post Reply