Benim link kısaltma scriptimde classımda yapmıştım;
function http_control($v)
{
$http_say = strlen('http://');
$i = '0';
$http = 'http://';
$total_match = substr($v,$i,$http_say);
if($total_match !== $http)
{
die("Geçersiz bir adres girdiniz başında $http olduğundan emin olduktan sonra tekrar deneyin");
}
}http_control($kontrol); yapman yeterli.