CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2305|Reply: 4

upload file besar gune php

[Copy link]
Post time 2-4-2011 04:32 PM | Show all posts |Read mode
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
Reply

Use magic Report


ADVERTISEMENT


Post time 2-4-2011 10:24 PM | Show all posts
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

Use magic Report

 Author| Post time 4-4-2011 04:18 PM | Show all posts
Reply 2# aLieNzDaToR

actually..kalau aku gune kat localhost..bole..
ni bile nak tukar setting kat server control panel...
Reply

Use magic Report

Post time 4-4-2011 10:17 PM | Show all posts
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
Reply

Use magic Report

Post time 19-4-2011 05:41 PM | Show all posts
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
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

23-12-2024 08:24 PM GMT+8 , Processed in 0.676955 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list