$url="http://www.zippysahare.com/777777/file.htm"; if(ereg('zippyshare', $url)) { echo ZIP;} elseif(ereg('4shared', $url)) { echo SHARED; } else { echo kitas; }