Merhaba hocam.
Fatal error: Cannot redeclare sefyap() in /home/serialbumler/public_html/baglanti.php on line 18
böyle hata veridi
baglanti.php kodları.
<?php
error_reporting(E_ALL ^ E_NOTICE);
include("../../baglanti.php");
session_start(); // Start Session
header('Cache-control: private'); // IE 6
header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
$config_username = 'demo';
$config_password = 'demo';
$cookie_name = 'siteAuth';
$cookie_time = (3600 * 24 * 30); // 30 gün
if(!$_SESSION['username'])
{
include_once 'autologin.php';
}
?>
Böyle deneyiniz ;
<?php
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($dosya_ismi,-600);
$link = "cover/kapak1/cover/" . $gercek_isim ;
if(move_uploaded_file($gecici_yer,"cover/" . sefyap($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();
?>