Author Topic: PHP 7.2 and Saratoga templates  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Offline zmarfak

  • Member
  • *
  • Posts: 16
    • Matar
PHP 7.2 and Saratoga templates
« on: February 03, 2018, 01:39:20 PM »
Hi,
I have the possibility to ask my hoster to upgrade the PHP version  (see choice in attachment).
I think this is ok, from what I read on the net it's faster.
Any comments from anyone for things to consider ?

Thanks.
--
Patrick

Davis Vantage Pro2 with a WLIP logger, Intel NUC with WL6.0.3 https://www.matar.be

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6387
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 7.2 and Saratoga templates
« Reply #1 on: February 03, 2018, 02:12:39 PM »
With current versions of the scripts, works fine with 7.2

Use check-fetch-times.php?show=versions on your site to see if you have current versions (and get a helpful link to get updates if you don't)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline zmarfak

  • Member
  • *
  • Posts: 16
    • Matar
Re: PHP 7.2 and Saratoga templates
« Reply #2 on: February 03, 2018, 04:21:02 PM »
Ok Ken,
thanks for the advice
--
Patrick

Davis Vantage Pro2 with a WLIP logger, Intel NUC with WL6.0.3 https://www.matar.be

Offline zmarfak

  • Member
  • *
  • Posts: 16
    • Matar
Re: PHP 7.2 and Saratoga templates
« Reply #3 on: February 04, 2018, 06:41:08 AM »
Switch is made on PHP 7.2.1 now
--
Patrick

Davis Vantage Pro2 with a WLIP logger, Intel NUC with WL6.0.3 https://www.matar.be

Offline AF6GL

  • Senior Member
  • **
  • Posts: 72
    • Jeffries Ranch Weather Center
Re: PHP 7.2 and Saratoga templates
« Reply #4 on: February 05, 2018, 03:24:01 PM »
Are there advantages to upgrading? I am currently running 5.4 and Hostgator states their latest stable version is 5.6. They do offer up to 7.1 but is it worth the risk of upgrading?

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6387
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP 7.2 and Saratoga templates
« Reply #5 on: February 05, 2018, 03:36:55 PM »
The main reason to update to a release is to have support for bug/vulnerability fixes with the PHP interpreter.
See http://php.net/supported-versions.php

PHP 5.4 stopped getting security support in July, 2015
PHP 5.6  went off of development support 19 Jan 2017 and security support will stop 31-Dec-2018.

So you should at least update to 5.6 (and strongly consider 7.2 which was released in Nov. 2017).

BTW.. the 'risk' is in NOT upgrading.  Older PHP has unfixed vulnerabilities that may be remotely exploited.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline zmarfak

  • Member
  • *
  • Posts: 16
    • Matar
Re: PHP 7.2 and Saratoga templates
« Reply #6 on: February 05, 2018, 04:48:28 PM »
I asked a question to the hoster to see if there were possibilities to speed things up.
I read a lot in https://www.wxforum.net/index.php?topic=32717.0
And one of the suggestion of the hoster was also to upgrade PHP to 7.2 (which was without cost, just making a choice in my "contract")
--
Patrick

Davis Vantage Pro2 with a WLIP logger, Intel NUC with WL6.0.3 https://www.matar.be

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 2962
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: PHP 7.2 and Saratoga templates
« Reply #7 on: February 05, 2018, 05:19:44 PM »
My hoster offers through 5.6 and 7.0 and 7.1. I noticed that all of the checked options are present in the shorter 7.x listings.

mysql is missing in the newest versions, but mysqli is there. Is this a transparent change, or are there some risks of something getting broken?

Greg H.




Blitzortung Stations 668, 706 - CWOP CW4114 -  CoCoRaHS MI-PI-1

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 193
  • #conligwx
    • conligwx.org
Re: PHP 7.2 and Saratoga templates
« Reply #8 on: February 05, 2018, 05:23:29 PM »
if you can use 7.2.x then for performance it is faster.

https://www.phoronix.com/scan.php?page=news_item&px=PHP-7.2-Final-Benchmark

https://www.phoronix.com/scan.php?page=news_item&px=PHP-7.2-Benchmarks-RC6

I'm hoping to move from 7.1 to 7.2 soon myself.
Regards Simon


Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 2962
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: PHP 7.2 and Saratoga templates
« Reply #9 on: February 06, 2018, 09:12:05 AM »
Well, I went ahead and tried the upgrade from 5.3.

7.x broke the "Evoluted Directory Listing Script" that I use to list certain files, notably the CoCoRaHS paper log scans. I also have some other files on another site I manage.

I updated the Evoluted Directory Listing Script and it works with 7.1 and 7.2. It does seem to give faster response than the old version for the entire site(s).

For some reason my hosting (Hosting24) allowed up to 7.1 on two of my sites, and 7.2 on our Ham club site. Not sure why this is.

Greg H.




Blitzortung Stations 668, 706 - CWOP CW4114 -  CoCoRaHS MI-PI-1

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 2962
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: PHP 7.2 and Saratoga templates
« Reply #10 on: February 07, 2018, 09:04:48 AM »
Hosting24 changed the control panel to allow 7.2 for the two sites and I made the change.

Greg H.




Blitzortung Stations 668, 706 - CWOP CW4114 -  CoCoRaHS MI-PI-1

Online Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 278
    • Indian Trail Weather
Re: PHP 7.2 and Saratoga templates
« Reply #11 on: February 11, 2018, 02:42:18 PM »
Ken,

I tried upgrading from PHP 5.6 to PHP 7.1 (GoDaddy). When running the "3in1" script http://indiantrailweather.com/wx3in1.php the "description and notes" section in the "Overview" tab displays "blank". Any ideas as to what I should check?

Thank you.

Update: Reverted back to PHP 5.6 until I can find a solution.
« Last Edit: February 11, 2018, 09:37:55 PM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline Toxic

  • Senior Contributor
  • ****
  • Posts: 193
  • #conligwx
    • conligwx.org
Re: PHP 7.2 and Saratoga templates
« Reply #12 on: February 12, 2018, 02:44:25 AM »
Ken,

I tried upgrading from PHP 5.6 to PHP 7.1 (GoDaddy). When running the "3in1" script http://indiantrailweather.com/wx3in1.php the "description and notes" section in the "Overview" tab displays "blank". Any ideas as to what I should check?

Thank you.

Update: Reverted back to PHP 5.6 until I can find a solution.

not sure of the link you provided since it looks like a non standard Saratoga template.

you do however have some updating to do with default files:

http://indiantrailweather.com/check-fetch-times.php?show=versions
Regards Simon


Online Breezy

  • Indian Trail Weather
  • Senior Contributor
  • ****
  • Posts: 278
    • Indian Trail Weather
Re: PHP 7.2 and Saratoga templates
« Reply #13 on: February 12, 2018, 08:25:31 AM »
I'll move my post to a different location as the issue is not with the Saratoga dashboard. All of the Saratoga "base" scripts have been updated. I'm running a "modified" Saratoga dashboard created by "Burnsville Weather Version 6.92". The dashboard info. all appear correct using PHP 7.1. All of the page scripts run fine except the "3in1" script" which needs some modification to be run by PHP 7.1

New topic location   http://www.wxforum.net/index.php?topic=33846.0
« Last Edit: February 12, 2018, 08:40:42 AM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

 

anything