function make_friendly_no_ext($string){
$buyuk = array( 1 => "Ş", "İ", "I", "Ğ", "Ü", "Ö", "Ç");
$kucuk = array( 1 => "s", "i", "i", "g", "u", "o", "c");
$string = str_replace($buyuk,$kucuk,$string);
$string = strtolower($string);
// remove all characters except spaces, a-z and 0-9
$string = ereg_replace("[^a-z0-9 ]", "", $string);
// make all spaces single spaces
$string = ereg_replace(" +", " ", $string);
// replace spaces with -
$string = str_replace(" ", "-", $string);
return $string;
}