• 15-03-2018, 20:10:43
    #10
    Aramızdan Ayrılanlar - Vefat Edenler
      class funcs
      {
          private static $cevap = "";
          public static $url = "http://trgreencard.com/";
          public static function resimYukle($name,$tmp,$target){
              $name=trcevir($name);
            $target_dir = $target;
            $baskimsi = microtime().$name;
            self::$cevap = $baskimsi;
            $target_file = $target_dir . $baskimsi;
            $uploadOk = 1;
            $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
            $check = getimagesize($tmp);
            if($check !== false) {
                $uploadOk = 1;
            } else {
                self::$cevap = "Sadece Resim Dosyalarına İzin Verilmektedir.";
                $uploadOk = 0;
                return false;
            }
            if ($uploadOk == 0) {
      // if everything is ok, try to upload file
            } else {
                if (move_uploaded_file($tmp, $target_file)) {
                      return true;
                } else {
                      self::$cevap = "İşlem Sırasında Hata Oluştu...";
                      return false;
                }
            }
        }
        public static function trcevir ($text) {
      $eng = array ('i','I','s','ç','g','Ç','G','ö','Ö','ü','Ü','S',' ');
      $tr = array ('i','I','s','c','g','C','G','o','O','u','U','S',' ');
      $text = str_replace($eng, $tr,$text);
      return $text;
      }
  • 15-03-2018, 20:13:15
    #11
    hicmiyok adlı üyeden alıntı: mesajı görüntüle
      class funcs
      {
          private static $cevap = "";
          public static $url = "http://trgreencard.com/";
          public static function resimYukle($name,$tmp,$target){
              $name=trcevir($name);
            $target_dir = $target;
            $baskimsi = microtime().$name;
            self::$cevap = $baskimsi;
            $target_file = $target_dir . $baskimsi;
            $uploadOk = 1;
            $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
            $check = getimagesize($tmp);
            if($check !== false) {
                $uploadOk = 1;
            } else {
                self::$cevap = "Sadece Resim Dosyalarına İzin Verilmektedir.";
                $uploadOk = 0;
                return false;
            }
            if ($uploadOk == 0) {
      // if everything is ok, try to upload file
            } else {
                if (move_uploaded_file($tmp, $target_file)) {
                      return true;
                } else {
                      self::$cevap = "İşlem Sırasında Hata Oluştu...";
                      return false;
                }
            }
        }
        public static function trcevir ($text) {
      $eng = array ('i','I','s','ç','g','Ç','G','ö','Ö','ü','Ü','S',' ');
      $tr = array ('i','I','s','c','g','C','G','o','O','u','U','S',' ');
      $text = str_replace($eng, $tr,$text);
      return $text;
      }
    Site çalışmıyor bu sefer
  • 15-03-2018, 20:14:06
    #12
    CanibrahimTR adlı üyeden alıntı: mesajı görüntüle
    Site çalışmıyor bu sefer
    fonksiyon class ın içinde olacak.
  • 15-03-2018, 20:16:09
    #13
    hicmiyok adlı üyeden alıntı: mesajı görüntüle
    fonksiyon class ın içinde olacak.
    Denedim bu sefer resim yüklemiyor
  • 15-03-2018, 20:16:51
    #14
      class funcs
      {
          private static $cevap = "";
          public static $url = "http://trgreencard.com/";
          public static function resimYukle($name,$tmp,$target){
             
      $eng = array ('i','I','s','ç','g','Ç','G','ö','Ö','ü','Ü','S',' ');
      $tr = array ('i','I','s','c','g','C','G','o','O','u','U','S',' ');
      $name= str_replace($eng, $tr,$name);
            $target_dir = $target;
            $baskimsi = microtime().$name;
            self::$cevap = $baskimsi;
            $target_file = $target_dir . $baskimsi;
            $uploadOk = 1;
            $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
            $check = getimagesize($tmp);
            if($check !== false) {
                $uploadOk = 1;
            } else {
                self::$cevap = "Sadece Resim Dosyalarına İzin Verilmektedir.";
                $uploadOk = 0;
                return false;
            }
            if ($uploadOk == 0) {
      // if everything is ok, try to upload file
            } else {
                if (move_uploaded_file($tmp, $target_file)) {
                      return true;
                } else {
                      self::$cevap = "İşlem Sırasında Hata Oluştu...";
                      return false;
                }
            }
        }
  • 15-03-2018, 20:18:32
    #15
    hicmiyok adlı üyeden alıntı: mesajı görüntüle
      class funcs
      {
          private static $cevap = "";
          public static $url = "http://trgreencard.com/";
          public static function resimYukle($name,$tmp,$target){
            
      $eng = array ('i','I','s','ç','g','Ç','G','ö','Ö','ü','Ü','S',' ');
      $tr = array ('i','I','s','c','g','C','G','o','O','u','U','S',' ');
      $name= str_replace($eng, $tr,$name);
            $target_dir = $target;
            $baskimsi = microtime().$name;
            self::$cevap = $baskimsi;
            $target_file = $target_dir . $baskimsi;
            $uploadOk = 1;
            $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
            $check = getimagesize($tmp);
            if($check !== false) {
                $uploadOk = 1;
            } else {
                self::$cevap = "Sadece Resim Dosyalarına İzin Verilmektedir.";
                $uploadOk = 0;
                return false;
            }
            if ($uploadOk == 0) {
      // if everything is ok, try to upload file
            } else {
                if (move_uploaded_file($tmp, $target_file)) {
                      return true;
                } else {
                      self::$cevap = "İşlem Sırasında Hata Oluştu...";
                      return false;
                }
            }
        }
    0.59470200 1521134232şüğashhds test resım.jpg
    şeklinde yüklüyor yine
  • 15-03-2018, 20:19:36
    #16
    CanibrahimTR adlı üyeden alıntı: mesajı görüntüle
    0.59470200 1521134232şüğashhds test resım.jpg
    şeklinde yüklüyor yine
    $resName= htmlentities ($_FILES['resim']["name"]); yerine $resName= $_FILES['resim']["name"];
  • 15-03-2018, 20:22:09
    #17
    hicmiyok adlı üyeden alıntı: mesajı görüntüle
    $resName= htmlentities ($_FILES['resim']["name"]); yerine $resName= $_FILES['resim']["name"];
    hala aynı deliricem az kaldı
  • 15-03-2018, 20:24:28
    #18
    https://www.erbilen.net/php-sef-link-fonksiyonu/ + verot upload sınıfını kullanın.