Public paste
Undefined
By: --- | Date: Apr 12 2007 07:23 | Format: PHP | Expires: never | Size: 435 B | Hits: 1489

  1. <html>
  2. <head>
  3. <title>Klok in PHP</title>
  4. </head>
  5.  
  6. <body>
  7.  
  8. <?php
  9.  
  10. $seperator =":";
  11.  
  12. $hour = date("G");
  13. $minute = date("i");
  14. $second = date("s");
  15.  
  16. $red = $hour / 24 * 255;
  17. $green = $minute / 60 * 255;
  18. $blue = $second / 60 * 255;
  19.  
  20. $red = dechex($red);
  21. $green = dechex($green);
  22. $blue = dechex($blue);
  23.  
  24. echo "<font color="$red$green$blue">$hour$seperator$minute$seperator$second</font>n";
  25.  
  26. ?>
  27.  
  28. </body>
  29. </html>