/    Sign up×
Community /Pin to ProfileBookmark

Uploading a large text file

I have a 24M text file that I’m trying to upload. I have changed the upload_max_filesize to 30M and the post_max_filesize to 31M. I have even changed the execution time and input time. I know all of this has already gone into effect but the file is still not being uploaded. I am using PHP 5.0.4 and Apache/2.0.53. Is there anything else I need to change in the PHP.ini or do I need to change the configuration of apache?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@crh3675May 27.2005 — with large files, there are many variables that you have to take into account:

If you are on a Unix/Linux server running apache you can create a .htaccess file and put in the directory you are running the script

put this in that file

php_value upload_max_filesize "50M"

php_value post_max_size "55M"

php_value max_execution_time 1200

php_value max_input_time 1200

php_value memory_limit 55M
Copy linkTweet thisAlerts:
@CrushinauthorMay 27.2005 — I'm not running this from a server but from my Windows XP machine.
Copy linkTweet thisAlerts:
@CrushinauthorMay 27.2005 — All that info has been change but it still will not upload.
Copy linkTweet thisAlerts:
@crh3675May 27.2005 — Did you check the error logs:

c:Program FilesApache GroupApachelogserror.log

Not to sound silly but I assume you are accessing file like:

http://localhost/youruploadfile.php


not

c:MyFilesyouruploadfile.php
Copy linkTweet thisAlerts:
@CrushinauthorMay 27.2005 — There is no error in the log file.
Copy linkTweet thisAlerts:
@crh3675May 28.2005 — Is PHP set to show errors on screen? If not, then where are the error message set to go to? Did you check the results of :

$_FILES["yourfile"]["error"]

?
×

Success!

Help @Crushin 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,
)...