lerrore te lo da perchè la funzione header va messa prima di ogni output, qualunque esso siaOriginariamente inviato da migeight
il mio script di prova è questo:
<html>
<head>
<title>Controllo consumi.</title>
</head>
<body>
<?php
//DATA E ORA
$date= date("d/m/y");
$time= date("G:i:s");
echo "<table width=1240 height=35>"; //border=\"2\"
echo "<tr>";
echo "<td width=80 height=10 bgcolor=white align=right>$time</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=80 height=10 bgcolor=white align=right>$date</td>";
echo "</tr>";
echo "</table>";
//REFRESH PAGINA
header("Refresh:10;");
?>
</body>
</html>
ma mi viene sempre fuori l'errore:
Warning: Cannot modify header information - headers already sent by (output started at c:\programmi\easyphp1-8\www\index.php:6)
cmq cma gia ti hanno suggerito devi farlo via html javascript o quantaltro ma non php
in html si fa cosi:
<meta http-equiv="refresh" content="10;URL=tuapagina.html">
ovviamente il 10 sta in secondi tra un refresh e laltro
buon divertimento