thminco Posted July 21, 2011 Share Posted July 21, 2011 I want a page that automatically posts a new paragraph of text at a certain scheduled time, maybe daily. I want the change to happen as visitors are already viewing the page, so they don't have to refresh to see the new page/text. Is this possible? How might I accomplish this? Thanks as always for everyones help! Quote Link to comment https://forums.phpfreaks.com/topic/242584-how-can-php-post-new-text-to-a-page-at-a-specific-scheduled-time/ Share on other sites More sharing options...
teynon Posted July 21, 2011 Share Posted July 21, 2011 You're looking to use AJAX on the client page and CRON to update the content in the database or file. You can Google for AJAX tutorials. Here's one: http://www.ajaxf1.com/tutorial/ajax-php.html Quote Link to comment https://forums.phpfreaks.com/topic/242584-how-can-php-post-new-text-to-a-page-at-a-specific-scheduled-time/#findComment-1245922 Share on other sites More sharing options...
thminco Posted July 21, 2011 Author Share Posted July 21, 2011 BTW, I am thinking the text would come out of a mysql database that I would fill accordingly. The script would then pull the daily text out of the database at the appropriate time each day. The key is that users could be watching and waiting for the text to appear at the designated time without having to keep refreshing the page. Quote Link to comment https://forums.phpfreaks.com/topic/242584-how-can-php-post-new-text-to-a-page-at-a-specific-scheduled-time/#findComment-1245931 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.