View Single Post
Old 06-01-2006, 01:28 AM  
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
PHP geeks - quick assist needed :)

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
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote