razorsese Posted April 21, 2012 Share Posted April 21, 2012 I need to execute something after a specific sleep time Like a random function which display a random image into html every 2 min; But i don't know how to do the 'every 2 min' part Quote Link to comment https://forums.phpfreaks.com/topic/261366-executin-something-after-a-period/ Share on other sites More sharing options...
litebearer Posted April 21, 2012 Share Posted April 21, 2012 php is server side. to have an image (or any content) change while the page is being viewed would require client-side scripting. ie javascript Quote Link to comment https://forums.phpfreaks.com/topic/261366-executin-something-after-a-period/#findComment-1339297 Share on other sites More sharing options...
razorsese Posted April 21, 2012 Author Share Posted April 21, 2012 I thought it was a dumb idea Anyway thanks Quote Link to comment https://forums.phpfreaks.com/topic/261366-executin-something-after-a-period/#findComment-1339298 Share on other sites More sharing options...
razorsese Posted April 21, 2012 Author Share Posted April 21, 2012 Actually I manage to refresh the content through a iframe and a refresh meta tag!! Quote Link to comment https://forums.phpfreaks.com/topic/261366-executin-something-after-a-period/#findComment-1339328 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.