PHP Code:
$full_url = "http:///www.wojfun.com/contactus_form.html";
$pos_dslash = strpos($full_url, "/", 7);
$trimmed_url = substr($full_url, 0, $pos_dslash);
Please fix this so result is only www.wojfun.com (without http://)
thanks!!!
$full_url = "http:///www.wojfun.com/contactus_form.html";
$pos_dslash = strpos($full_url, "/", 7);
$trimmed_url = substr($full_url, 0, $pos_dslash);

Comment