help php.ini

mvcnet

New member
can anyone help me out.. i need to change a site to another server but the max_upload from the php.ini is set at 2M and the database is bigger.

how can I change this?

is it possible to do it by ssh?

please help need to put a greater number than 2 :thumbup:
 
I am not too sure what you mean by "the database bigger" but to change the upload_max_filesize do this: (works on apache servers only and your host allows you to override those values)

1) create a file called ".htaccess" if you are using windows you may not beable to easily do this instead make a file called "1.htaccess" and when its uploaded rename the file to ".htaccess".

2) in the .htaccess file put the following line:

Code:
php_value upload_max_filesize 8M

3) Upload the file into the directory your upload script is in.

for more info see: http://uk.php.net/ini-set and http://www.phpfreaks.com/tutorials/10/0.php

Hope this helps (And hope it works as i havnt realy worked with changing ini values in .htaccess),

Stewart McIntosh
 
Last edited:
Top