tags:

views:

34

answers:

3
+2  A: 

You can use the header function for that:

header("LOCATION: http://www.something.com");
Sarfraz
oh...how can i forget that...it so simple... but thanks...
Nitz
A: 
<?php
header('Location: http://www.example.com/');
?>

Make sure there is NOTHING above the line outputed. otherwide it'll fail.

Glycerine
Or you can also call ob_start() to turn on output buffering.
futureelite7
@futureelite7 - Good point
Glycerine
A: 

You could use the header() command:

<?php
  header("Location: http://www.example.com/");
?>
richsage