Jump to content

Cron and a page with meta refresh


andrewgarn

Recommended Posts

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

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?

 

 

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)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.