I'm trying to create a PHP script that will determine the day of week (monday, tuesday, wednesday, etc), and according to which day it is, a different includes file is loaded. I put this code together, but it doesn't work. I'm extremely new to PHP, so I was wondering if someone could help me out.b
Here's what I have come up with, but first of all it doesn't work, it posts "b.php" as if it was Sunday, when in fact the server date is Tuesday.
<?php
$A = date("D");
$B = "Sun";
$C = "Mon";
$D = "Tue";
$E = "Wed";
$F = "Thu";
$G = "Fri";
$H = "Sat";
$A == $B { require ('/path/to/includes/b.php'); };
$A == $c { require ('/path/to/includes/c.php'); };
$A == $D { require ('/path/to/includes/d.php'); };
$A == $E { require ('/path/to/includes/e.php'); };
$A == $F { require ('/path/to/includes/f.php'); };
$A == $G { require ('/path/to/includes/g.php'); };
$A == $H { require ('/path/to/includes/h.php'); }
?>