1 2 3 4 56
$url = str_replace("http://", "", $url); if (strpos($url, "://") !== false) { return htmlDisplayError("only valid links please."); }