/    Sign up×
Community /Pin to ProfileBookmark

php upload file limit

Hi guys.. I got script which lets you upload files. On the demo page of the vendor it works great with large files. In my case, if the file is over 18 mb it stops responding.

I’ve tried adding these lines to the .htaccess files but with not luck.. any ideas?

php_value upload_max_filesize 100M
php_value post_max_size 150M
php_value memory_limit 32M
php_value max_execution_time 600

any ideas?

thanks

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@launchpad67aMay 14.2007 — This is more of an issue with your server than anything else. If you're hosting sites on a "shared server", the max upload limit is usually set low and you cannot change this. Sometimes an .htaccess file will work, sometimes it will not. It depends on your host.

Did you try uploading that .htaccess file to the actual folder where your upload script is (instead of the server root/html)? Try putting in a few places and see if anything works. If not, you probably cannot change this setting on your server.
Copy linkTweet thisAlerts:
@Mary_zauthorMay 14.2007 — Hi Launchpad,

Yes, it's a shared server and I've tried putting the .htaccess file in root and the folder where I have my script. But no luck.


I'll guess I'll email my hosting company and see if there is anything they can do.

Thanks anyways!!
Copy linkTweet thisAlerts:
@The_Little_GuyMay 14.2007 — to temporarily change the ini file:

http://us2.php.net/ini_set

php.ini directives you can set to configure your PHP setup:

http://us2.php.net/manual/en/ini.php#ini.list
Copy linkTweet thisAlerts:
@TaschenMay 14.2007 — There's a similar post to this from not long ago somewhere round here, the best solution that was arrived at there was to use php's ftp functions as these are more suited to handling large files.

I know that doesn't answer your question given you are using a third party script, but it may be something to look at.
×

Success!

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