There is no exact code change to be made for those settings.
to increase the upload file size to 6MB, you need to increase the
The post_max_size setting should be larger than the upload_max_filesize
to increase the script execution time, you need to adjust:
if there image resizing occurring, you will also need to adjust:
if you are resizing images, you should increase the memory_limit to 256M