Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 09:20:57 am
42750 Posts in 8091 Topics by 17932 Members
Latest Member: codder
Turk-Php.Com Forum  |  Yardım Forumları  |  PHP Yardım Forumu  |  Upload işleminde 2MB sınırı nasıl çözülür? « previous next »
Pages: [1] Print
Author Topic: Upload işleminde 2MB sınırı nasıl çözülür?  (Read 174 times)
fucar07
Yeni Kullanıcılar
*
Offline Offline

Posts: 4


View Profile
Upload işleminde 2MB sınırı nasıl çözülür?
« on: May 01, 2008, 02:29:03 am »

Merhaba arkadaşlar.
Ben çalıştığım okula bir ders destek bölümü koydum. Panelden sunu dosyalarını upload ettirdim. Fakat server 2 MB ile sınırlandırmış. Bu yüzden büyük dosyaları upload ettiremiyorum. Bunun bir çözümü varmıdır? Yoksa illa serverdanmı halledilmesi gerekiyor.
Logged
Nazgul2
Nazgul
PHP Stajyeri
**
Offline Offline

Posts: 158


Gentlemen, welcome to Fight Club


View Profile
Ynt: Upload işleminde 2MB sınırı nasıl çözülür?
« Reply #1 on: May 01, 2008, 03:03:05 am »

www.php.net
Code:
<?php
function get_size($path)
{
  if (!is_dir($path)) return filesize($path);
  if ($handle opendir($path)) {
    $size 0;
    while (false !== ($file readdir($handle))) {
      if($file!='.' && $file!='..'){
        $size += filesize($path.'/'.$file); // this line affects that size of file is added two times
        $size += get_size($path.'/'.$file);
      }
    }
    closedir($handle);
    return $size;
  }
}
?>


Logged

1st&2nd: You do not talk about Fight Club!
3rd: If someone says "stop" or goes limp, taps out the fight is over.
4th: Only two guys to a fight.
5th: One fight at a time.
6th: No shirts, no shoes.
7th: Fights will go on as long as they have to
8th: If this is your first night, you have to fight.
fucar07
Yeni Kullanıcılar
*
Offline Offline

Posts: 4


View Profile
Ynt: Upload işleminde 2MB sınırı nasıl çözülür?
« Reply #2 on: May 01, 2008, 04:31:29 am »

Nazgul2 teşekkürler. Ancak kodların anlamını çözemedim. Yani bu kodları yazdığım zaman ne olacak? Dosyayı küçültecek mi?
Logged
Nazgul2
Nazgul
PHP Stajyeri
**
Offline Offline

Posts: 158


Gentlemen, welcome to Fight Club


View Profile
Ynt: Upload işleminde 2MB sınırı nasıl çözülür?
« Reply #3 on: May 01, 2008, 05:37:52 am »

kusura bakma alttarafı tam anlamadan ekledim kodları

server ın firewall veya cisco switch gibi koruması varmı?
Logged

1st&2nd: You do not talk about Fight Club!
3rd: If someone says "stop" or goes limp, taps out the fight is over.
4th: Only two guys to a fight.
5th: One fight at a time.
6th: No shirts, no shoes.
7th: Fights will go on as long as they have to
8th: If this is your first night, you have to fight.
fucar07
Yeni Kullanıcılar
*
Offline Offline

Posts: 4


View Profile
Ynt: Upload işleminde 2MB sınırı nasıl çözülür?
« Reply #4 on: May 01, 2008, 07:36:55 am »

Tam olarak bilmiyorum korumasını nasıldır? Ama hosting hizmeti veren firmayı rica ettiğimde güvenlik gereği 2 mb ı geçemeyiz dediler. Yani onların yapacağı bir durum yok galiba. Biz dosyayı parça parça gönderebilir miyiz acaba? Ya da alternatif fikirler var mıdır?
Logged
discotek
Yeni Kullanıcılar
*
Offline Offline

Posts: 32


View Profile
Ynt: Upload işleminde 2MB sınırı nasıl çözülür?
« Reply #5 on: May 01, 2008, 11:51:48 am »

dostum o konu hosting firman ile ilgili yaw Smiley
ama ftp den at sen bence ?
Logged
Pages: [1] Print 
« previous next »
Jump to: