Creating the file from the file manager
1. Inside of file manager click the "+file" button
2. Name the file php.ini
3. Select the file in the list of files
4. Click the "Code edit" button
5. Put in the desired code
What is a php.ini file?
a php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits.
What values can be edited inside it?
There are a lot of values that can be set in the php.ini file but only a couple are going to be used often.
memory_limit = 128m
Most hosting defaults to around 128m In some cases you may need to raise this value, in those circumstances I would recommend moving up your memory limit by 64m increments. If you are still having issues with your memory make sure that the values are being excepted using a phpinfo() script. In rare cases a plugin or theme may need you to set the memory to infinite(-1m); This can cause major problems so make sure to backup your site before making the change.
upload_max_filesize = 24M
The maximum size of an uploaded file.
post_max_size = 32M
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. Generally speaking, post_max_size should be larger than memory_limit.
max_execution_time = 30
This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server.
Generating a php.ini
You can use this script I have created. This will give you the basic options you can edit.