{"id":442,"date":"2023-03-22T13:23:17","date_gmt":"2023-03-22T13:23:17","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=442"},"modified":"2023-03-22T13:23:19","modified_gmt":"2023-03-22T13:23:19","slug":"php-reload-page-after-10-seconds","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2023\/03\/22\/php-reload-page-after-10-seconds\/","title":{"rendered":"PHP Reload Page After 10 Seconds"},"content":{"rendered":"\n<p>Here is my take on the question, how to refresh the page after 10 seconds<\/p>\n\n\n\n<p>Enjoy<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\r\n&lt;script type=\"text\/javascript\">\r\n\r\n  var timeout = setTimeout(\"location.reload(true);\",10000);\r\n  function resetTimeout() {\r\n    clearTimeout(timeout);\r\n    timeout = setTimeout(\"location.reload(true);\",10000);\r\n  }\r\n  \r\n&lt;\/script>  <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP Reload Page After 10 Seconds<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[252,253,42,251],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-life-as-a-programmer","category-php-and-mysql","tag-after-10-seconds","tag-javascript-code","tag-php","tag-reload"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=442"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/442\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/442\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}