What is the best way to create a php.ini

I want to change the sites ability to upload a file larger then 8M

Should I just create a blank file php.ini, place teh following in it and upload to root?

upload_max_filesize = 20M