Jump to content

Archived

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

BreakBreak

Meta refresh and loops

Recommended Posts

If your html has a meta refresh, say 2 seconds, and your php loop runs for 5 second, will it refresh after 2 seconds or wait for the php loop to finish?

Thanks in advance.

Share this post


Link to post
Share on other sites
Depending on the browser, if the browser is still recv'ing content, it might wait until all the data has been recv'd before redirecting.

But in 99% of the cases, it will redirect after the META refresh has finished. Closing the connection to the server (since http is a stateless protocol).

hth.

Share this post


Link to post
Share on other sites
Good, so it WILL refresh even though php is running?

What if php terminates itself, does the refresh still go through?

This is what i WANT to happen :)

Share this post


Link to post
Share on other sites

×

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.