7. WRITE A PHP PROGRAM TO DISPLAY A DIGITAL CLOCK WHICH DISPLAYS THE CURRENT TIME OF THE SERVER.
SOLUTION 1 & SOLUTION 2
1. If xampp is in the system, save the program in C:\xampp\htdocs (start apache in xampp control panel)
2. If no xampp in the system, save the program in C:\Program Files\Apache Group\Apache2\htdocs & Open Google Chrome & type http://localhost/prog7.php
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>
STEPS :( click on image to zoom )
OUTPUT :( click on image to zoom )
SOLUTION 1 & SOLUTION 2
1. If xampp is in the system, save the program in C:\xampp\htdocs (start apache in xampp control panel)
2. If no xampp in the system, save the program in C:\Program Files\Apache Group\Apache2\htdocs & Open Google Chrome & type http://localhost/prog7.php
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>
STEPS :( click on image to zoom )
OUTPUT :( click on image to zoom )
You never have to worry about forgetting what you're doing, how much time you have before the next meeting, class, or event again! With this sleek and stylish wall clock, you can see your personalised clock on the face of the clock, and also the time. It's great for every room in your home or office.
ReplyDeleteNice blog , Thanks for sharing There are many ways to personalize a clock. Some people get them designed in different shapes, some people purchase a wall clock with photo , while some buy them attached with calendars. There is no hard and fast rule of how to personalize a clock. If you will start looking online on printing websites, you might find some attractive designs.
ReplyDeleteUseful information! Choosing to Hire flutter developer is one of the most valuable decisions for my business. I got them via Eiliana.com, an emerging freelancing platform. Eventually, I learned they have a wide range of technology experts. One should try them.
ReplyDelete