lalnfl Posted April 10, 2011 Share Posted April 10, 2011 How would I keep a set time, without it changing in php? I have a ajax and a javascript interval running for 3 seconds. But everytime it intervals, the time changes in my php script. So how would I keep the time that the person came onto this page? Link to comment https://forums.phpfreaks.com/topic/233249-keeping-the-same-time/ Share on other sites More sharing options...
sunfighter Posted April 13, 2011 Share Posted April 13, 2011 Why do you have a time in the php anyway? Once your html page is loaded the first time use js to make a start time, update it at the end of the interval and use that for the start time of the page. PHP date not needed. Link to comment https://forums.phpfreaks.com/topic/233249-keeping-the-same-time/#findComment-1201325 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.