7. VTU WEB TECHNOLOGY LAB | READ NOW

 VTU WEB TECHNOLOGY LAB

7] WRITE A PHP PROGRAM TO DISPLAY A DIGITAL CLOCK THAT DISPLAYS THE CURRENT TIME OF THE SERVER.


STEPS TO EXECUTE PHP PROGRAM

  1. Copy the php code given below
  2. Save it with .php file name extension
  3. Place the file in the htdocs of XAAMP
  4. Start the XAAMP control panel
  5. Start Apache server
  6. Click on admin in XAMPP Control pale
  7. Replace the url dashboard name with your php file name
  8. Execution completed

Solution prog7.php

<head>
 <meta http-equiv="refresh" content="1"/>
 <style>
  p {
   color:yellow;
   font-size:90px;
   position:absolute;
   top: 40%;
   left: 50%;
   transform: translate(-50%, -50%);
  }
  body {
   background-color:maroon;
  }
 </style>
 <p> <?php echo date(" h: i : s A");?> </p>
</head>

WEB TECHNOLOGY Output

WEB TECHNOLOGY

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp Icon Join For Job Alerts