Posted on January 7th, 2008
135968 views
We are going to create a page reload using PHP. Now if you're not sure if PHP works on your web host, then create a .php page and type in the following code:
<?php echo "Hello World!"; ?> That should tell you if your web host provides PHP or not. Most servers do, some free ones do not. Getting started, we first will write our variables for this script: <?php In this tutorial, we will be using the famous, header(); function.... I will show you a few other ways of reloading a page as well.... <?php And for all of you who do not have php, we will use the meta tag version... <meta http-equiv="Refresh" content="10;url=demo.html"> That will reload you to DEMO.html lets do a reload that will reload the page we are currently at <meta http-equiv="Refresh" content="10"> Simple huh? Now I will re-write the PHP script with out the comment tags for those who just like to copy and paste. <?php Hope this was helpful to some new people :D |