Jump to content


Photo

Meta refresh and loops


  • Please log in to reply
4 replies to this topic

#1 BreakBreak

BreakBreak
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 24 October 2006 - 11:09 AM

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.

#2 heckenschutze

heckenschutze
  • Members
  • PipPipPip
  • Advanced Member
  • 257 posts
  • LocationAustralia

Posted 24 October 2006 - 11:12 AM

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.

#3 BreakBreak

BreakBreak
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 24 October 2006 - 11:19 AM

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 :)

#4 heckenschutze

heckenschutze
  • Members
  • PipPipPip
  • Advanced Member
  • 257 posts
  • LocationAustralia

Posted 24 October 2006 - 11:20 AM

Yes :)

#5 BreakBreak

BreakBreak
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 24 October 2006 - 11:24 AM

Great!  :D

Thank you again :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users