Clean up an URL from scripts
<?php
function clean_url(&$hit_link) {
// Find the first occurency of "http://". If it's not at position zero remove everything before it.
    $find = 'http://';
    $url  = $hit_link;
    $pos  = strpos($url, $find);
    if($pos !== FALSE) {
      // We found a http://, on what position?
      if($pos > 0) {
        $pos += 7;
        $url = substr($url, $pos); //Removes the first "http://"
        $hit_link = $url;
      }
    }
  }
?>Knowledge keywords: 
