Nie mogę sobie dać rady z odczytaniem daty z plku txt.
Mam taki kod
$lastState = "Off"; else $lastState = "On"; echo "Last auto-contact from the water heater was on ". $lastTime. " and the status was ". $lastState. " (Reset was ".$lastReset." Minutes ago)";
Niestety podczas wykonania otrzymuję błąd.
Poniżej wynik wyświetlony na stronie.
Cytat
13
1488113398 23 56 67
1488113398
Warning: date() expects parameter 2 to be long, string given in /....................php on line 240
Last auto-contact from the water heater was on and the status was On (Reset was 56 67 Minutes ago)
1488113398 23 56 67
1488113398
Warning: date() expects parameter 2 to be long, string given in /....................php on line 240
Last auto-contact from the water heater was on and the status was On (Reset was 56 67 Minutes ago)
Wartość jaka wpisana jest w pliku
Cytat
1488113398 23 56 67
Nie bardzo wiem jak to ugryźć
