/    Sign up×
Community /Pin to ProfileBookmark

uploading large files in php

hi, i used the normal move_uploaded_file() function to upload .rm music files and images using php..but now i need to upload large files..such as setups and installation programs..and for some reason, when i try uploading any other file using the same code, it gives me errors that dont make any sense..so is there a default maximum size set by the move_uploaded_file() function or is there another way of uploading larger files?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@vonMantheiAug 05.2007 — your php.ini file sets a maximum limit of 2mb by default (the hard limit) in the 'upload_max_filesize' option. any attempts to set a 'soft limit' in your script higher than the default are ignored. you can load larger files by setting a new default in the php.ini file.
Copy linkTweet thisAlerts:
@mazazinoauthorAug 06.2007 — and where can i find this php.ini file?..coz i cant find it..and when i open it how do i change the limit?..i mean is it a text file with php code in it or what?
Copy linkTweet thisAlerts:
@mazazinoauthorAug 06.2007 — ok ok so i changed the php.ini file..i found it and 4 other php.ini files on my PC and i searched for the upload_max_filesize and it was set to 2M so i changed it to 60M and i saved the file..but it didnt work..its still giving me the same errors it did before i changed the .ini file..did i do something wrong or is there another way?..coz i need to upload larger files badly..
Copy linkTweet thisAlerts:
@felgallAug 06.2007 — Uploading files biggewr than 2Mb using the default method is extremely inefficient which is why that is the default.

See http://www.php.net/ftp for info on the functions that can be used for efficiently uploading large files.
×

Success!

Help @mazazino spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...