Question: I had uploaded two PDF files to the server in php. but they are uploaded correctly but when uploading larger files I get an error. Iam using mysql server

How to upload large files(100 mb) in php?

Answer: 
To add to Tom van der Woerdt's answer about upload\_max\_filesize:

Chances are, default execution limits will also have to be changed, or the script will timeout while you're uploading a large file.

Also look into:

`post_max_size`
`max_input_time`
`max_execution_time`
The suggestion to set max\_upload\_size and post\_max\_size is correct, but you may still encounter problems in some installations. One thing to remember when setting these values is that post\_max\_size is at least double the value of max\_upload\_size. In other words, if you set max\_upload\_size to 100mb, then post\_max\_size must be 200mb, otherwise the settings will be rejected and the engine will use the default settings of 2mb and 8mb instead. Also, you need to be sure that memory\_limit is at least the size of max\_upload\_size. If you crank up the post and upload sizes, but you are not allotting enough memory then you will still run into problems.