Im a newbie to html code this auto refresh code is of intrest to me but wasnt able to get it working for my situation.Login with Facebook and Twitter. Ajax Image Upload without Refreshing Page using Jquery. PHP Login Page Example. home » code » php » automatic php copyright date. This PHP code will automatically update to the new year without you having to lift a finger.Any page using the code snippet below, must end in a PHP extension, and of course, your host must support PHP (BLA - BLA - BLA). ?> Auto Refresh How to PHP webpage.Hi i think i can use this for a problem i have. I need to find a way to get a page refresh IF a string is emptyHow can i rewrite your code? Thanks for your time. i trying to make auto refresh work in PHP code. This code is to include a news article with a blog under and also ref docs, however when you post a comment, the blog form and postings appear twice. In this article, I will discuss the options you have for refreshing a page using PHP, and why that word is a slight bit misleading. Solid Tip: PHP is limited to using a meta tag to actually refresh a page. Redirecting a page is another story. and in the logout.php page destroy the session - I think Dreamweaver has a server behaviour for doing that although I have not checked in some time. Then just redirect back to the login. php page. php alone wont automatically do anything without a page refresh. In this tutorial well see how to refresh a page after a preset amount of time (usually seconds or minutes). Functions like this are used in big portals to automatically refresh the home page (or subpages) in order to give always updated news.