Şöyle deneyin.
<?php
function sefyap($string)
{
$find = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#');
$replace = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp');
$string = strtolower(str_replace($find, $replace, $string));
$string = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $string);
$string = trim(preg_replace('/\s+/', ' ', $string));
$string = str_replace(' ', '-', $string);
return $string;
}
include("baglanti.php");
ini_set('display_errors',0);
@$isim=$_POST['isim'];
@$dosya_ismi= $_FILES['dosya']['name'];
@$gecici_yer=$_FILES['dosya']['tmp_name'];
@$hata=$_FILES['dosya']['error'];
@$ksube=$_POST['ksube'];
echo $ksube;
$ayir= "-";
if ($dosya_ismi=="" || $hata>0 || substr($dosya_ismi,-15)=="php" ) {
echo "Dosyanız izin kontrollerini geçemedi.";
}else{
include("ayar.php");
$gercek_isim= "resim_" . $say_sira . substr(sefyap($dosya_ismi),-600);
$link = "cover/kapak1/cover/" . $gercek_isim ;
if(move_uploaded_file($gecici_yer,"cover/" . $gercek_isim)){
echo "Dosyanız Yüklendi.<br><br>Yüklenen Dosya: <a href=" . $link . " >" . $link . "</a>" ;
}else{
echo "Dosyanız yüklenirken bir sorunla karşılaşıldı.";
}
}
?>
<br><br><hr>
<a href="JavaScript:window.close()" onClick="javascript:opener.document.getElementById('dosyalink').value='<?php echo $link; ?>'">Ekranı Kapat..</a>
<?php
mysql_close();
ob_end_flush();
?>