i want to make my index page display the current quarter and year so it will get updated as time goes by. i need help on reconstructing my code. here it is. its like a bulletin board calendar of some sort:
$now = new DateTime();
$month = (int)$now->format("m");
$get_year = date("Y");
if ($month >= 1 AND $month <= 3) {
include_once("../index.php?year=".$get_year."&quarter=Q1");
}
elseif ($month >= 4 AND $month <= 6) {
include_once("../jet/index.php?year=".$get_year."&quarter=Q2");
}
elseif ($month >= 7 AND $month <= 9) {
include_once("../jet/index.php?year=".$get_year."&quarter=Q3");
}
else {
include_once("../jet/index.php?year=".$get_year."&quarter=Q4");
}
the page that would be displayed are ready, its just that i cant display it and results to these errors:
Warning: include_once(.../index.php?year=2012&quarter=Q3) [function.include-once]: failed to open stream: Result too large in D:\xampp\htdocs\jet\index.php on line 121
Warning: include_once() [function.include]: Failed opening '.../index.php?year=2012&quarter=Q3' for inclusion (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\jet\index.php on line 121
help anyone?