Advertisement
Guest User

Untitled

a guest
Dec 6th, 2011
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. $target = mktime(0, 0, 0, 12, 7, 2011) ;
  3. $today = time () ;
  4. $difference =($target-$today) ;
  5. $days =(int) ($difference/86400) ;
  6.  
  7. if ($days=="0")
  8. echo "Its Christmas!";
  9. else
  10. print "Christmas is in $days days";
  11. echo"</br>";
  12.  
  13. ?>
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement