PHP   67

servertime2 php

Guest on 10th June 2022 01:49:54 AM

  1. <?php
  2. header('Content-Type: text/xml');
  3. header('Cache-control: no-cache');
  4. header('Pragma: no-cache');
  5. header('Expires: -1');
  6. echo "<?xml version=\"1.0\" ?>
  7.      <clock>
  8.        <timestring>It is ".date('H:i:s')." on ".date('M d, Y').".</timestring>
  9.      </clock>";
  10. ?>

Raw Paste


Login or Register to edit or fork this paste. It's free.