cloudy cloudy

Author Topic: 7.x php compliant version of the attached hiloavg2.php script? - RESOLVED  (Read 118 times)

0 Members and 2 Guests are viewing this topic.

Offline Bonz

  • Posts: 154
  • Auburn, Mass
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Auburn MA Weather
Does anyone have a 7.x php compliant version of the attached hiloavg2.php script?
« Last Edit: April 17, 2019, 11:13:38 PM by Bonz »

Offline saratogaWX

  • Global Moderator
  • Posts: 5,903
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: 7.x php compliant version of the attached hiloavg2.php script?
« Reply #1 on: April 17, 2019, 07:24:58 PM »
Sure... it was to replace all split() calls with explode() calls.
Try the attached.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bonz

  • Posts: 154
  • Auburn, Mass
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Auburn MA Weather
Re: 7.x php compliant version of the attached hiloavg2.php script?
« Reply #2 on: April 17, 2019, 07:47:55 PM »
Thanks Ken.  I uploaded it where my old one was located and its displaying nothing.  i'm thinking my menu page is calling something wrong.  Can you look at the attached as this is what was calling hilowavg2.php in the past.  Otherwise i'll take a look at what I can find tonight.

Thanks so much.
John

Offline saratogaWX

  • Global Moderator
  • Posts: 5,903
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: 7.x php compliant version of the attached hiloavg2.php script?
« Reply #3 on: April 17, 2019, 07:55:37 PM »
Your wxhiloavg.php has
Code: [Select]
include_once("hilowavg2.php") but the script is named hiloavg2.php (no 'w' in the name), so change it to
Code: [Select]
include_once("hiloavg2.php")
BTW.. it is working on my test site (PHP 7.2.13) here
« Last Edit: April 17, 2019, 07:58:13 PM by saratogaWX »
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Bonz

  • Posts: 154
  • Auburn, Mass
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Auburn MA Weather
Re: 7.x php compliant version of the attached hiloavg2.php script?
« Reply #4 on: April 17, 2019, 08:02:31 PM »
 :oops: - Thanks as I would have never caught that :)

Outstanding - works perfectly.  I'm now officially on php 7.3 - thanks for all your script updates !!!!
John