Upload large file in php using .htaccess

Here i want to share small tips for friends which is used to upload large file using htaccess rules.

Step 1. Create a .htaccess file in the root folder of web server.

Step 2. Put the below code in your .htaccess files

<IfModule mod_php5.c>
php_value upload_max_filesize 60M
php_value post_max_size 60M
php_value max_execution_time 60
php_value max_input_time 60

Now you can upload maximum file size 60M.

You can change size of uploading as per you needed.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s