Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 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

PHP Day-file Monthly Climatical Table

Talk about anything that doesn't fit elsewhere - PLEASE don't put Cumulus queries in here!
Post Reply
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

PHP Day-file Monthly Climatical Table

Post by 6719jason »

TNETWeather wrote:usermap is updated.
Thanks Kevin :)

Slightly off topic but...I have been scratching my head all day trying to get this to work.

You know the PHP Day-file Monthly Climatical Table - No MySQL Script you made....
I can get it to display the current months data no problem within my website but...when I try and get it to display another month I get error messages and so on.
I used the following to include it <?php include ("./dayfile.php?y=2010m=01"); ?> But this simply doesnt work?
What Am I doing wrong?
My site works on the following template system...Template_Content / Monthly / content.php
I have set up a non working example of the problem... http://www.weeleyweather.co.uk/?page=Feb2010
Yet...the file dayfile.php sits in the main directory?
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: A Change of name doesnt necessarily mean a change of Service

Post by 6719jason »

daj wrote:
6719jason wrote:David/Daj - Could you please update my URL on the Wiki Weather Gadget to http://www.weeleyweather.co.uk
Done

I much prefer the new URL :D
Oh Me too :lol:

2 Year Deal - Domain Redirect and .co.uk for £13 which isnt too bad and I could pay via PayPal.
TNETWeather

Re: A Change of name doesnt necessarily mean a change of Service

Post by TNETWeather »

8-)
6719jason wrote:
TNETWeather wrote:usermap is updated.
I used the following to include it <?php include ("./dayfile.php?y=2010m=01"); ?> But this simply doesnt work?
What Am I doing wrong?
Wrong format. should be:

Code: Select all

<?php include ("./dayfile.php?y=2010&m=01"); ?>
& between the year and the month indicators.

Leading zero on the month is not needed but works both ways.
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: A Change of name doesnt necessarily mean a change of Service

Post by 6719jason »

TNETWeather wrote:8-)

Wrong format. should be:

Code: Select all

<?php include ("./dayfile.php?y=2010&m=01"); ?>
& between the year and the month indicators.

Leading zero on the month is not needed but works both ways.
Thanks Kevin.

I did as you suggested and it unfortunately made no difference at all :(

I can grant temporary access to my server for you if that would be easier?
TNETWeather

Re: PHP Day-file Monthly Climatical Table

Post by TNETWeather »

There is nothing wrong with the dayfile.php script as these work just fine...

http://www.weeleyweather.co.uk/dayfile.php?y=2010&m=1

http://www.weeleyweather.co.uk/dayfile.php?y=2010&m=2

The problem must be in your script that is calling the dayfile.php script.
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: PHP Day-file Monthly Climatical Table

Post by 6719jason »

I see.

Thanks Kevin. I can now see that they work fine outside of my Template System.

In your opinion, what is the best way of integrating in Tables into my website?
TNETWeather

Re: PHP Day-file Monthly Climatical Table

Post by TNETWeather »

Not knowing anything about how your website works, I don't know.

The error

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in C:\xampp\htdocs\weather\template_content\Feb2010\content.php on line 6

Clearly is stating what it sees wrong.

On line 6 of the

C:\xampp\htdocs\weather\template_content\Feb2010\content.php

file it sees an syntax error with an unexpected end.

This typically is caused by a missing brace.
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: PHP Day-file Monthly Climatical Table

Post by 6719jason »

TNETWeather wrote:Not knowing anything about how your website works, I don't know.

The error

Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in C:\xampp\htdocs\weather\template_content\Feb2010\content.php on line 6

Clearly is stating what it sees wrong.

On line 6 of the

C:\xampp\htdocs\weather\template_content\Feb2010\content.php

file it sees an syntax error with an unexpected end.

This typically is caused by a missing brace.
I see....Im not sure why it is stating that as this is the code from the content.php file:

<div id="main-copy">
<?php include ("./dayfile.php?y=2010&m=02"); ?>
</div> <!--END MAIN Div -->
TNETWeather

Re: PHP Day-file Monthly Climatical Table

Post by TNETWeather »

6719jason wrote:
TNETWeather wrote:Not knowing anything about how your website works, I don't know.

I see....Im not sure why it is stating that as this is the code from the content.php file:

<div id="main-copy">
<?php include ("./dayfile.php?y=2010&m=02"); ?>
</div> <!--END MAIN Div -->
A script located in C:\xampp\htdocs\weather\template_content\Feb2010\content.php with a relative addressed location of ./dayfile.php .... is pointing at

C:\xampp\htdocs\weather\template_content\Feb2010

Not

C:\xampp\htdocs\weather\template_content

You might be better using direct addressing instead.

<?php include ("C:/xampp/htdocs/weather/template_content/dayfile.php?y=2010&m=02"); ?>

or where ever the actual physical location of the dayfile.php is.
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: PHP Day-file Monthly Climatical Table

Post by 6719jason »

TNETWeather wrote:
A script located in C:\xampp\htdocs\weather\template_content\Feb2010\content.php with a relative addressed location of ./dayfile.php .... is pointing at

C:\xampp\htdocs\weather\template_content\Feb2010

Not

C:\xampp\htdocs\weather\template_content

You might be better using direct addressing instead.

<?php include ("C:/xampp/htdocs/weather/template_content/dayfile.php?y=2010&m=02"); ?>

or where ever the actual physical location of the dayfile.php is.
Thanks for that Kevin.

I tried as you suggested and unfortunatly despite pointing directly to the file, it still gave an error :(
Post Reply