vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP Maximum Upload Size (https://vborg.vbsupport.ru/showthread.php?t=108368)

elite1 02-19-2006 10:18 AM

PHP Maximum Upload Size
 
Hi

Im having problems uploading files larger than 2mb as attachments. Ive read about having to increase the size on the server, but my server owner will not do this. Is there any other way? I find it rather bad that this needs to be done, as many people will be in the same situation as me as the change affects all accounts on the server doesnt it?

Any help would be really appreciated.

Regards

Ben
undergroundportal.co.uk

Hellcat 02-19-2006 11:58 AM

If you don't have access to the PHP config and your hoster will not change it - I'm afraid there's nothing you can do....

elite1 02-19-2006 03:40 PM

Quote:

Originally Posted by Hellcat
If you don't have access to the PHP config and your hoster will not change it - I'm afraid there's nothing you can do....

Thanks for the reply. Its a shame this isnt mentioned before people purchase vbulletin. I now have a forum thats going to cost even more money to keep things moving and keep members pleased. I read something about a php.ini file and editing a .conf file in the includes folder, ive managed to increase the php memory limit to 16mb but am still stuck with 2mb max upload size :-(

Thanks

Ben

LincolnForums 02-19-2006 04:16 PM

You can move hosts, I'm sure there are plenty of hosts out there for you that allow larger then 2MB uploads, I know www.dreamhost.com is one and ASO allows 15MB i beleive.

Their service is probably better, and you might even save a few $$

elite1 02-19-2006 04:23 PM

Hi

I dont really want to move hosts, ive tried before, done an sql backup, went to the new server and it wouldnt restore. I got given a load of crap from both hosts about versions etc but they were both running the same version. Is there any way to make a universal backup of the sql that will work with any my sql server? Also I dont think I will get hosting any cheaper, 4.99, unlimited everything, lifetime membership. If anyones interested please pm me, obviously not suitable for uploads greater than 2mb! :devious:

Thanks

hbalagh1 02-19-2006 05:15 PM

drop this in your htaccess file

php_value upload_max_filesize 10M // max size in Mb

cash7c3 02-13-2007 01:49 AM

i have quite a few .htaccess files for various things on my server. how would i go about determining which one is correct?

thanx

l2-inferno 02-13-2007 01:54 AM

Quote:

Originally Posted by hbalagh1 (Post 904686)
drop this in your htaccess file

php_value upload_max_filesize 10M // max size in Mb

please specify this

Analogpoint 02-13-2007 02:48 AM

Quote:

Originally Posted by l2-inferno (Post 1181178)
please specify this


hbalagh1 is right about this.

The upload_max_filesize directive defaults to 2Megs. It can be set from php.ini, httpd.conf or .htaccess from version 4.2.4 on. Before that it could be set from anywhere

As he says, just add this line to the .htaccess file in the root directory of your forum. If there isn't a .htaccess file there, create one.

Quote:

php_value upload_max_filesize 10M // max size in Mb

cash7c3 02-13-2007 05:27 AM

i tried adding a .htaccess and every directory below where i would add it went offline.


All times are GMT. The time now is 06:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01785 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete