Can anyone help me? I'm a newbe. I need a php countdown birthday script (no database using if possible) for example script displaying: 331 days till my birthday
<? function until( $date, $occasion = "birthday", $for = "my" ) { $unix = strtotime( $date ); if(!$unix) : printf( "%s is not a valid date format", $date ); else: printf("%d days till %s %s ( %s )", ( $unix - time() ) / 86400, $for, $occasion, date("dS F Y", $unix ) ); endif; } until( "18th March 2008" ); PHP: due to limitations of strtotime, you can't do dates that far in the future, but for birthdays it'll work.....