Refresh a PHP page for every predefined seconds

后端 未结 6 1111
一个人的身影
一个人的身影 2021-01-26 17:06

I would like to load/refresh a particular page for every 10 secs to view updated data\'s fetched from Database.

I used META for doing it

 

        
6条回答
  •  青春惊慌失措
    2021-01-26 17:45

    using javascript to fetch dynamic content has one more benefit: if the content doesn't load for one time, it can still keep trying. if you reload the whole page and it doesn't load, then it would stop there.

    also if you use Ajax, then the display is nicer because you don't see the whole page blanking out and re-rendering again and again.

提交回复
热议问题