Kod
<html>
<meta http-equiv="refresh" content="1">
<?php
$czas = date("G:i:s");
$czas2 = date("G:i:s + 20");
$dane = file('czas.txt');
fwrite($dane, $czas2);
fclose($dane);
echo $czas
if(isset($czas && $dane)){
if($czas == $dane){
echo "Odliczanie zakonczone"
}
}
?>
</html>
<meta http-equiv="refresh" content="1">
<?php
$czas = date("G:i:s");
$czas2 = date("G:i:s + 20");
$dane = file('czas.txt');
fwrite($dane, $czas2);
fclose($dane);
echo $czas
if(isset($czas && $dane)){
if($czas == $dane){
echo "Odliczanie zakonczone"
}
}
?>
</html>
No i wyswietla taki blad:
Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in tajna_strona:)
Nie mam pojecia co jest zle. Probowalem w if($czas == $dane) wpisac zamiast $dane , $czas2.
Prosze o odpowiedzi. Czekam i wszystkich pozdrawiam.