All PHP Tutorials
Ad Management
Counter
Email System
Forum and Guestbook
File Upload
Image Manipulation
Login / Members / Password
Pagination
Encode Script
Refresh / Redirection
Miscellaneous
All MySQL Tutorials
Create, Manage Database using phpMyAdmin
Connect to Database
Insert Data
Select Data
Edit Database
Update Database
Delete Database
Order Results
Forums



Home > PHP Tutorials
Automatic refresh webpage / Set time to redirect
Automatic refresh webpage / Set time to redirect
When you need your web page automatic refresh in 5 second or any second, use this meta tag. it's a simple code, put it between HEAD tag in your web page. 
 
Overview

This script easy but powerful. Many websites use this scripts to redirect to another page or refresh the same page, for example, my website updates in every 10 minutes and I want to show user my latest content then I put this script to my page and set it refreshs in every 10 minutes.


Automatic Refresh / Redirect

<HEAD>

<meta http-equiv='refresh' content='2;url='file_name or URL'>

</HEAD>

// content = time (second)
// file_name = name of file you want to refresh or redirect

Random Tutorial
 
Encode PHP Scripts
Convert and protect your PHP scripts to unreadable but still executable. This is a list of tools you can use to protect your PHP code.
 
PHP Redirection script
Learn how to redirect in this tutorial, you can use header(); function in php or use meta to redirect to a new page you want or redirect to other website.
Advertisement
 
   
Hosted by Hostgator
© PHPeasystep.com 2005-2008