Hi,
Can anyone explain why this will not work please...
I have two php pages...
site.com/folder/page1.php
<?php
require_once('../functions.php');
$redirectSite;
?>
and then:
site.com/functions.php
<?php
$homePage = 'http://www.ebay.com/';
function redirectSite(){
header("Location: $homePage");
}
?>
I cannot seem to get this to work. If i have the page in the header redirect like this...
header("Location: http://www.ebay.com/");
But when i try to use the variable - there is no redirect, it just stays on the page1.php.
Many thanks for any help.