<?php
$day = "date ('D')";
if($day == MON){
header("Refresh: 0;URL=pagina1.html");
};
$day = "date ('D')";
if($day == TUE){
header("Refresh: 0;URL=pagina2.html");
};
$day = "date ('D')";
if($day == WED){
header("Refresh: 0;URL=pagina3.html");
};
$day = "date ('D')";
if($day == THU){
header("Refresh: 0;URL=pagina4.html");
};
$day = "date ('D')";
if($day == FRI){
header("Refresh: 0;URL=pagina5.html");
};
$day = "date ('D')";
if($day == SAT){
header("Refresh: 0;URL=pagina6.html");
};
$day = "date ('D')";
if($day == SUN){
header("Refresh: 0;URL=pagina7.html");
};
?>
questo è il mio index.php
ho fatto poi le sette pagine html nella stessa cartella,
sto lavorando in locale con easyphp, non ho nessun errore ma la pagina bianca, non mi carica insomma l'html del giovedi

Rispondi quotando