How do I edit php.ini (PHP settings) for my hosting package?

Becuase of the way in which we run PHP, you are able to customise its behaviour with php.ini files. These are plain text files (use Notepad if running Windows, TextEdit in Plain Text mode on Mac), which contain directives such as:- 

memory_limit = 24M 

A complete list of php.ini directives can be found here:- 

http://www.php.net/manual/en/ini.list.php 

-: you should only set these as per the requirements of your application as other settings may cause your scripts to malfunction or be vulnerable to attack. 

You should name this file php.ini, unless otherwise required, it should be located in the root of your hosting package (ie, above public_html). 

php.ini files can be used for very fine-grained control - a PHP script will pick up the settings in the php.ini file closest to it, so you can enable functions for a single folder rather than the whole site - this is useful when running CMSes on subdomains.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you support SSI (Server Side Includes)?

Yes we do. SSI (Server Side Includes) are tags that are placed in HTML pages, and evaluated on...

How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

How can I enable directory indexing

If you want to see a list of files in a directory when viewing it in a browser rather than a web...

How can I force a particular charset? (Character Encoding)

You are able to set a default value for the media type charset parameter (the name of a character...

How do I enable gzip compression on my website

You can decrease load times on your website by compressing the contents. You can do this on...