My original posting from this early morning disappeared so here's the posting again...
In reply to djjjozsi's posting (thank you!)
date("z") the first day is 0 ...
do you still created 365 files ?
PHP:
$filename="dir/page".date("z").".php";
if(file_exists($filename))
include($filename);
else
include("dir/fail.php");
Thank you for showing a different way! Yes, still create 365 files (different directory/filenames). How do you modify this code to the array?
$filename="dir/page".date("z").".php";
$content = array(
0 => "n/here.php",
1 => "y/year.php",
2 => "word/s/surprise.php",
3 => "word/h/hello.php",
etc.. until 365
Still don't understand why my original codes have been working all past months until last few days ago.
Thanks.