Jump to content

How to allow an user to upload files more than 10MB


smita

Recommended Posts

Hi Friends,

 

I am new to the PHP, can anybody please tell me what I have to do to allow an user to upload files more than 10MB.

I tried changing in the php.ini file following..

upload_maxfile_size=15M

post_max_size=15M

memory_limit=15M

But it didn't work.

I also want to know what is .htaccess file, where is it present.

I am using Apache 2.2.9 & PHP 5.2.6.

 

Thanks,

Smita

 

It should have worked if you set those params. Check whether in the code you have specified the value of  upload_maxfile_size below 10M.

 

.htaccess file: the main use comes where our site is hosted in a shared environment. Where each sites has different configurations. Apache settings specific for your domain can be written in those file. It can be put in any place. normally it resides in the root directory.

 

http://httpd.apache.org/docs/1.3/howto/htaccess.html

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.