Am I missing something, guys? Surely you could just run:
if(date("d")<15){
//Do one thing: e.g. require _once(beginning_of_month.php);
}else{
//Do t'other thing
}
Stacy, date("d") simply returns the numeric day of the month value for the present day the script runs on. date() is actually an incredibly flexible and useful function: more about it here:
http://uk2.php.net/manual/en/function.date.php
HTH
Dan