Why dosnt this work? - I get the dreaded 'Headers already sent' error.
Code:
<?php function comefrom()
{
$lang = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
if (substr($lang, 0, 2) hahahaha 'zh')
{
header("Location: http://asiafriendfinder.com/search/g462236-pct?race=2&show=F&age=18-27");
} else {
header("Location: home.php");
}
}
comefrom();
?>
Thanks
