andrewgarn Posted July 4, 2008 Share Posted July 4, 2008 This is in conclusion to a post yesterday If I have a php update page which updates 20 rows, then reloads itself and does the next 20 etc It will be reloading itself with either: 1) a header: header("Location: file.php?start={$newStart}"); 2) a meta refresh with a 5 second delay redirecting to the same page with a new get var. Will a cron job load this page correctly, or will it just work with the first 20 rows? Thanks Link to comment https://forums.phpfreaks.com/topic/113263-cron-and-a-page-with-meta-refresh/ Share on other sites More sharing options...
DarkWater Posted July 4, 2008 Share Posted July 4, 2008 No, because the cron job would just be "touching" the PHP file, not actually caring about the output. Why not just access it in the browser and let it do its thing? Link to comment https://forums.phpfreaks.com/topic/113263-cron-and-a-page-with-meta-refresh/#findComment-581935 Share on other sites More sharing options...
andrewgarn Posted July 4, 2008 Author Share Posted July 4, 2008 No, because the cron job would just be "touching" the PHP file, not actually caring about the output. Why not just access it in the browser and let it do its thing? I'm looking to make a page that updates sets of users regularly. Would need to be done using cron in order to make it automatic. Would cron not work with my current method then, which just has a while loop for each user, will it only do the first user? Link to comment https://forums.phpfreaks.com/topic/113263-cron-and-a-page-with-meta-refresh/#findComment-581937 Share on other sites More sharing options...
DarkWater Posted July 4, 2008 Share Posted July 4, 2008 cron would not reload the page with any header or meta refreshes. Link to comment https://forums.phpfreaks.com/topic/113263-cron-and-a-page-with-meta-refresh/#findComment-581938 Share on other sites More sharing options...
andrewgarn Posted July 4, 2008 Author Share Posted July 4, 2008 cron would not reload the page with any header or meta refreshes. Ok thanks. I guess I will have to stick with my current method. Was trying to get around a timeout problem. I guess when i buy a server soon, it will solve the problem (timeout is from inability to change the max execution time) Link to comment https://forums.phpfreaks.com/topic/113263-cron-and-a-page-with-meta-refresh/#findComment-581939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.