- Impact
- 18
It says unexpected t_variable or something - line 6 (highlighted)
anyone know what's wrong?
Thanks
Tom
PHP:
$sub = $_SERVER['HTTP_HOST']; // get host
$domain = "6yd.net";
$sub = eregi_replace($domain, "" $sub); //<-- line 6?!
$sub = eregi_replace("www\.", "", $sub);
$sub = strtolower($sub);
if(!empty($sub)){
include("shorturl/do_short_url.php");
}
anyone know what's wrong?
Thanks
Tom
Last edited by a moderator:









