//ทำการ PHP Redirect - Header Location
header( "location: http://www.ireallyhost.com" );
exit(0);
//ทำการ PHP Redirect - Header Refresh
header( "refresh: 2; url=/download" );
exit(0);
** refresh ต้องตามติดด้วย ( : ) เสมอ
** ค่าตัวเลข 2 หมายถึง จำนวนวินาที
** สามารถระบุปลายทางด้วย ที่อยู่เว็บไซต์ ( URL ) หรือ Path / Folder ที่ต้องการ
** การระบุ exit(0); หมายถึง ให้ทำงานสิ้นสุดแค่คำสั่ง header เท่านั้น
** การใช้ function header ใน php ต้องไม่มีการสั่ง echo , print เกิดขึ้นก่อน ฟังก์ชั่น header