Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 09:44:26 am
42751 Posts in 8091 Topics by 17932 Members
Latest Member: codder
Turk-Php.Com Forum  |  Yardım Forumları  |  PHP Yardım Forumu  |  Büyük boyutlu dosya upload etmek « previous next »
Pages: [1] Print
Author Topic: Büyük boyutlu dosya upload etmek  (Read 391 times)
Myre
PHP Öğrencisi
*
Offline Offline

Posts: 105


View Profile
Büyük boyutlu dosya upload etmek
« on: March 24, 2008, 08:55:00 am »

Merhaba,

4Mb civarı bi dosyanın admin menüsü içerisinden yüklenmesi gerekiyor ancak dosyanın boyutu büyük olduğu için süre aşımından dolayı  bağlantı kesiliyor ve yüklenemiyor. Sadece ilgili sayfa için bu süreyi nasıl uzatabilirim ki kullanıcı bu şekildeki büyük boyutlu dosyaları sisteme yükleyebilsin?

Teşekkürler...
Logged
mahirix
PHP Stajyeri
**
Offline Offline

Posts: 192



View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #1 on: March 24, 2008, 10:26:13 am »

Code:
ini_set("max_execution_time",500); // artır istediğin gibi saniye cinsinden
Logged

Myre
PHP Öğrencisi
*
Offline Offline

Posts: 105


View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #2 on: March 24, 2008, 06:25:10 pm »

olmuyor gene yüklemiyor dosyayı Sad
Logged
Myre
PHP Öğrencisi
*
Offline Offline

Posts: 105


View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #3 on: March 25, 2008, 09:21:45 am »

çözümü yok mu arkadaşlar? Yani var da ben bulamadım Sad
Logged
GaziMarşı
PHP Stajyeri
**
Offline Offline

Posts: 447


View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #4 on: March 25, 2008, 10:17:01 am »

php.ini dosyasında upload_max_filesize veya benzeri bir satır olmalı... Orada yükleyebileceğin maksimum dosya boyutu yazıyor...
« Last Edit: March 25, 2008, 10:18:55 am by GaziMarşı » Logged

mahirix
PHP Stajyeri
**
Offline Offline

Posts: 192



View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #5 on: March 25, 2008, 04:22:39 pm »

ini_set("upload_max_filesize", boyut); Bu şekilde de olur
Logged

deja_wu
Günay Yılmaz
PHP Stajyeri
**
Offline Offline

Posts: 275



View Profile WWW
Ynt: Büyük boyutlu dosya upload etmek
« Reply #6 on: March 25, 2008, 05:12:53 pm »

.htaccess
Code:
php_flag post_max_size 20M
php_flag upload_max_filesize 20M

Kolay Gelsin.
Logged

In the dark future, dark planet of dark people. DarkLords will rule

Jabber İletişim : deja_wu@member.turk-php.com
aziz
PHP Programcısı
****
Offline Offline

Posts: 940



View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #7 on: March 25, 2008, 09:53:30 pm »

Notlar:


Quote
You can use the ini_set() function to set a directive's  value in your scripts provided the "CHANGEABLE" attribute in the above chart is PHP_INI_USER or PHP_INI_ALL.

diğer yandan
Quote
upload_max_filesize     "2M"     PHP_INI_PERDIR
post_max_size     "8M"     PHP_INI_PERDIR

Quote
PHP_INI_PERDIR     2     Entry can be set in php.ini, .htaccess or httpd.conf

yani
Quote
php_value upload_max_filesize 20M

çünkü

Quote
In .htaccess, only true/false on/off flags can be set using php_flag. To set other values you need to use php_value, like this:

php_value upload_max_filesize 20M
php_flag register_globals off
php_flag magic_quotes_gpc on

Selamlar
« Last Edit: March 25, 2008, 10:13:03 pm by aziz » Logged

Jabber:
xmpp:aziz@member.turk-php.com
Alihan ÇETİN
www.azizce.com
Myre
PHP Öğrencisi
*
Offline Offline

Posts: 105


View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #8 on: March 30, 2008, 07:46:32 am »

Selamlar...

Host 2M dosyaya izin veriyor. Şunu denedim gene olmadı...

ini_set('max_upload_filesize', 8388608);
ini_set('post_max_size', 8388608);


.htaccess olayını anlayamadım... Böyle bir dosya var mı yaratıcam mı???

Ayrıca ben bu işlemin sadece ve sadece ilgili sayfada olmasını istiyorum. Yani 8M sadece istediğim satfada yüklenebilsin devamında böylebir yetki vermek istemiyorum...

Logged
deja_wu
Günay Yılmaz
PHP Stajyeri
**
Offline Offline

Posts: 275



View Profile WWW
Ynt: Büyük boyutlu dosya upload etmek
« Reply #9 on: March 30, 2008, 08:02:25 am »

.htaccess adında bir dosya oluşturuyorsunuz ve içine aşağıdakileriniz yazıp hostunuza yükliyorsunuz

diğer sayfalarınızda ise kontrol ile limitleri kontrol edebilirsiniz.

php_flag post_max_size 20M
php_flag upload_max_filesize 20M
Logged

In the dark future, dark planet of dark people. DarkLords will rule

Jabber İletişim : deja_wu@member.turk-php.com
Myre
PHP Öğrencisi
*
Offline Offline

Posts: 105


View Profile
Ynt: Büyük boyutlu dosya upload etmek
« Reply #10 on: March 30, 2008, 10:41:47 am »

.htaccess diye bir dosya oluşturup içine direk

php_flag post_max_size 20M
php_flag upload_max_filesize 20M

yazdım... Bunu hangi dizine göndercem ve nasıl çalışacak? Kendisi direk çalışıyor mu?
Logged
Pages: [1] Print 
« previous next »
Jump to: