<?php $zaman=date("H"); if ( $zaman >07 and $zaman < 23 ) {echo "banner1 kodları";} else { echo "banner2 kodları"; } ?>