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 @anon99413185
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 ![]()
@anon6359875 you happy now??
Ehm.