View: 2306|Reply: 4
|
upload file besar gune php
[Copy link]
|
|
kepada otai2 php..
aku ade buat satu php form untuk upload file..dan aku baru perasan yang php configuration pada Control panel untuk upload file 2MB sedangkan aku perlu upload file sekurang2nya 100MB.
soalan aku:
1. bolehkah kite sewenang-wenangnya menukar setting tersebut contohnya jika ingin tukar setting 2MB kepada 100MB.
2. jika tak boleh...ada tak cadangan yang membolehkan aku mengupload file yang > 50MB.
terima kasih sesangat pada sapa2 yang dapat membantu |
|
|
|
|
|
|
|
Yes. Anda bleh sewenang2nya tukar setting kat php.ini. Cari setting ni.
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 1000 ; Maximum execution time of each script, in seconds
max_input_time = 1000 ; Maximum amount of time each script may spend parsing request data
; Maximum size of POST data that PHP will accept.
post_max_size = 100M
; Maximum allowed size for uploaded files.
upload_max_filesize = 100M |
|
|
|
|
|
|
|
Reply 2# aLieNzDaToR
actually..kalau aku gune kat localhost..bole..
ni bile nak tukar setting kat server control panel... |
|
|
|
|
|
|
|
Reply aLieNzDaToR
actually..kalau aku gune kat localhost..bole..
ni bile nak tukar setting kat ...
areana1 Post at 4-4-2011 16:18
Kalau camtu, try guna cara ni.
1) Create a .htaccess file in the root folder of web server.
2) Put the following code in side the .htaccess file and save it.
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 100
php_value max_input_time 100
|
|
|
|
|
|
|
|
Huhuhuhu... macam POC group aku awal taun tu ari aje..huhuhu tapi kejam sket.. depa nak transfer rate laju giler ...upload atas browser platform huhuhu... programmer dapat gak buat utk kasik boost sket.. pakai java engin cap apa entah:p huhuhu...pastu POC dalam localhost hohohoho...memang TM pom leh tutup kompeni muwahahahah... transfer rate file sharing / NIC pom kalah sket:p |
|
|
|
|
|
|
| |
|