How to Refresh a web page or redirect to another page
Published on 3/21/2007 by editor|
Vote this tutorial:
|
More articles in PHP
There are many useful functions in PHP. Refresh function is a real focus and helps to us to redirect apage or refresh page itself. Let's see it in action.
Sample Code - Refreshing a single page :
header("Refresh: 10;");
?>
This simple code refreshes the page in every 10 seconds. If you wish to refresh page in different times, just play with secound.
Sample Code - Refreshing and redirecting a page :
header("Refresh: 10; url=http://www.dotnetindex.com/read.asp?articleID=3011");
?>
Yes, ths is a cool function. Page will be displayed in 10 seconds and later will redirect to another page.
no comments submitted
Latest Posts
- Database driven web counter with PHP/mySQL
- PHP mail() function
- Workingwith Arrays in PHP
- Check if the domain name exists
- Generating random strings within PHP
- Encode/Decode an ISO-8859-1 string to UTF-8
- Creating error pages using .htaccess
- PHP Security
- Displaying mySQL table structures in PHP
- Capitilize strings in PHP
- Counting records in PHP mySQL
- Parsing XML/RSS feeds easily with SimpleXML
- Sending queries to mySQL
- Session in PHP
- MD5 Encryption in PHP
- PHP Functions array fill
- How to display date time in real time
- PHP Functions urlencode
- In Case You Missed ItThe Week of January 23 2006
- In Case You Missed ItThe Week of January 16 2006


