web hosting
build a website

Increase PHP upload size in WAMP

Mar 23, 2014   //   by Anthony Devine   //   Website Development tips  //  No Comments

When using WAMP to edit sites locally, you may find that your SQL database files you import are too large. You need to set the size larger for uploads in PHP, so firstly create a .htaccess file here: C:\wamp\apps\phpmyadmin3.5.1\.htaccess or where ever the folder is located and then add the following into the file:

php_value upload_max_filesize 120M
php_value post_max_size 120M
php_value max_execution_time 200
php_value max_input_time 200

You can make the size to whatever you want and you should now be able to import your database.