I'm trying add some text that changes every specific pereoud of time and deppence on what hour it is.
if I use time() from php it will uses only server's time. and people visiting from other side of the world would get same thing that from other side...
right now I managed uses javascript to find a time, because it's client side script, but the script become very big, because I need send to client all text for each hour, and javascript shows only the one that is set for the curent time....
so, if atleast that could be acomplished:
in javascript first find what time it is:
DAY = new Date()
HR = day.getHours()
then execute some php code:
{time} or <?php include("time.php"); ?> that will display the text deppense on what is in " HR ".
so, I was wondering if there is a way php can find out what is curent time on client machine?
thx.