Thursday, July 24, 2008

Redirecting Using PHP

Tutorial name: Redirecting using PHP
You're experience: Advanced
Difficulty: Anyone
Time Taken: 5-30 seconds
Plug-ins needed: none

Creating a redirecting script is quite easy, however keep in mind that some primitive hosts are not able to do this with any other code, I found it very disappointing.
On the server I use this works no matter what, but I have found that on very few servers, it only works if nothing has been written on the page.
Code:
header("Location: http://anoobsworld.info"); // your URL goes in there.
?>

No comments: