Author Topic: (wx)HiLowAvg.php and GoDaddy.  (Read 756 times)

0 Members and 1 Guest are viewing this topic.

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
(wx)HiLowAvg.php and GoDaddy.
« on: October 23, 2014, 08:29:04 PM »
I'm a refugee from E-Rice and am now on Godaddy, along with my other domain(s).   A few problems in moving, mostly attirbutable to me not knowing what to do, or the utilities they (GoDaddy) has available..  All issues bar one now appear to be resolved.

The wxHiLowAvg.php, (used by me for station record display),  and /or the subordinate php's which this calls are giving me problems -- as here --
........................
Deprecated: Function split() is deprecated in /home/content/26/9257026/html/weather/hilowavg2.php on line 1633
Oct-4
54.5°F

Deprecated: Function split() is deprecated in /home/content/26/9257026/html/weather/hilowavg2.php on line 1633
Oct-14

...................

Now, if I read this right, function 'split()' is no longer a valid function.

I'm running on php 5.3, with godaddy recco'ing I upgrade to 5.4.      Let's get 5.3 working ffor me first!

What is the function 'split()' replaced with, and is it just as simple as find / change to do the upgrade?

Thanks a bunch

Ken

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
Re: (wx)HiLowAvg.php and GoDaddy.
« Reply #1 on: October 23, 2014, 08:32:52 PM »
as an after thought, is an updated version in the saratoga templates site?   Mine is currently
VERSION: 1.50 - 17-Mar-2009

Thanks again

Ken

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9277
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: (wx)HiLowAvg.php and GoDaddy.
« Reply #2 on: October 23, 2014, 08:36:34 PM »
The wxhiloavg.php isn't one of mine...

You can replace split() with explode() and that should fix the issue.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
Re: (wx)HiLowAvg.php and GoDaddy.
« Reply #3 on: October 23, 2014, 08:55:00 PM »
Ah, thanks Ken.

Didn't think it was one of yours as I couldn't find it in the Base zips.

I'll try explode tomorrow when I have some time to myself..

Ken

Offline azkiwi

  • Senior Contributor
  • ****
  • Posts: 160
    • Maricopa, Sonoran Desert, Arizona
Re: (wx)HiLowAvg.php and GoDaddy.
« Reply #4 on: October 24, 2014, 02:59:00 PM »
Thanks again Ken!
Just changed it for a test and it works perfectly!

Ken
 :grin: :grin: :grin: :grin: :grin: :grin: :grin: