How do i get script that show server time?

Discussion in 'PHP' started by eyucks, Jul 12, 2007.

  1. #1
    :eek: please help to get some script in php... im new in php language
     
    eyucks, Jul 12, 2007 IP
  2. WebGeek182

    WebGeek182 Active Member

    Messages:
    510
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    95
    #2
    I'd recommend exploring the time function on the PHP Manual site.

    Thsi should do what you need:

    
    <?php
    $tmestamp = time();
    $datum = date("Y-m-d (D) H:i:s",$tmestamp);
    echo $datum;
    ?>
    Code (markup):
     
    WebGeek182, Jul 12, 2007 IP