The php.ini file should only contain the custom settings - each on its own line (such as the above example). When completed, save the file and upload it to an area (folder) on your web account where the rest of your php files are located.
NOTE: The php.ini file should be uploaded into every folder and/or subfolder where the settings need to take place. Be sure to rename your php.txt file to php.ini before you upload it to your server.