date()dd/mm/yy;
time();
?>
This is reply 666
How can I make my website display the time? Iām in UK
Lol
Use date("H:i")
, but first set the date default timezone to Europe/London
with date_default_timezone_set("Europe/London")
. The resulting code should be this:
<?php
date_default_timezone_set("Europe/London");
echo date("H:i");
?>
Where?
in your webpage, like:
<?php
echo date("H:i");
?>
Also make sure your file is .php and not ,html, Coding backend is fun, because you write few codes and now youāve done a magic.
I edited my code with the resulting code. Test it on a test PHP script, then when youāre ready to deploy put the first two lines at the beginning of the script including the end tag, then echo date("H:i")
on the part on where you display the time. Note that it doesnāt update in real time; if you want it to update in real time either use JavaScript or refresh the page every minute using HTML at the cost of consuming the hits.
Do i put that in the middle of my html
How can I do that
I just got promoted to trust level 2
Gr8 Good Luck.
Donāt dare be mean about that cat.
Summary
Welcome Back @adisp007
Seeing you after a long timeā¦
Hello all, how are you?
Thanks @anon77371365.
Because I made many new projects, so I donāt have time to visits the forums.
Welcome back! Iām fine if youāre asking, thanks.
My version of opera (4min) is here - final after the third minute
P.S. donāt shift the focus as it will stop with the singing
And you make your own
I think i let the cert expire
@allroundernaman you happy now??
Ehm.