I need a php script: like this: this week include 1.txt next week include 2.txt .......
Can you provide some more information ?
That would make it easier to help you
Gary Mailer
....I have .txt file and i want that every week on the year are differet .txt file
instancešdate) 1, 2, 3, 4, 5, 6, 7 | include 1-7.txt 8, 9, 10, 11, 12, 13, 14 | include 8-14 and so along...
i hope you can understand
somebody please help me!!!!
Try something like this: First get the weeknumber, then use a set of IF statements to decide which file to include.
$iWeekNumber = strftime("%W");
// Weeks 1 through 7 if (($iWeekNumber >= 1) AND ($iWeekNumber <= 7)) { include('1-7.txt'); } elseif (($sMonth_number >= 8) AND ($sMonth_number >= 14)) { // Weeks 8 through 14 include('8-14.txt'); } else { include('the_rest.txt'); };