Author Topic: cloud-base.php  (Read 442 times)

0 Members and 1 Guest are viewing this topic.

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
cloud-base.php
« on: December 29, 2018, 09:16:10 AM »
Hi, I'm trying to put the cloud-base.php script and I get this error

the image can not be displayed because it contains errors

http://www.meteotorrelavega.com/saratoga/cloud-base.php

If I do the following test
http://www.meteotorrelavega.com/saratoga/cloud-base.php?uom=M&html=1&test=1
this error comes out
Deprecated: mktime(): You should be using the time() function instead in /home/meteotorkc/www/saratoga/cloud-base.php on line 694

this line puts

// determine if it's day or night
$today    = mktime();
$sun_rise = strtotime($sunrise);
$sun_set  = strtotime($sunset );
$night    = ($today>$sun_rise && $today<$sun_set)? false : true;


any ideas

Thank you
emilio #-o #-o




Offline BCJKiwi

  • Forecaster
  • *****
  • Posts: 302
    • Silver Acorn Weather - N.Z.
Re: cloud-base.php
« Reply #1 on: December 29, 2018, 02:57:08 PM »
Try
$today    = time();

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: cloud-base.php
« Reply #2 on: December 29, 2018, 05:52:11 PM »
Thank you
emilio    =D&gt; =D&gt; =D&gt; \:D/ \:D/ \:D/ :grin: :grin:

 

anything