I was acutally quite impressed that having a look a few bits and bats of code online I came up with:
<body bgcolor="99CCFF"><font face="Verdana"><font size="1"><?phplist($sMonth, $sDay) = explode(",", date("M,j"));$fil = fopen('dates.txt', r);$dat = fread($fil, filesize('dates.txt')); $array = file('dates.txt');$sDayed = $sDay - 1;$sDayed2 = $sDay + 1;$sDayed3 = $sDay + 2;$sDayed4 = $sDay + 3;$sDayed5 = $sDay + 4;$sDayed6 = $sDay + 5;$sDayed7 = $sDay + 6;$sDayed8 = $sDay + 7;$sDayed9 = $sDay + 8;echo "$array[$sDayed]";echo "$array[$sDay]";echo "$array[$sDayed2]";echo "$array[$sDayed3]";echo "$array[$sDayed4]";echo "$array[$sDayed5]";echo "$array[$sDayed6]";echo "$array[$sDayed7]";echo "$array[$sDayed8]";echo "$array[$sDayed9]";fclose($fil);?>
Not as easy persay as your code, but was nevertheless impressed with my ability to fix it, lol.Thanks for the reply though