9
It may be a simple question but I’d like to know what the php.ini
and its use for a website/system.
If possible, I would like good references (not always the meeting) that can help in the explanation as well.
9
It may be a simple question but I’d like to know what the php.ini
and its use for a website/system.
If possible, I would like good references (not always the meeting) that can help in the explanation as well.
9
It is a settings file. It has directives on how PHP should behave regarding memory usage, paths, installed modules and its own settings, which parts of PHP can be used and how they will be, various usage limits, etc. It has a standard format called INI.
In general it has settings that work well for all sites, but it is possible to have several versions of it and for each site to load one with the most appropriate settings. Of course you need to have control of the hosting to accomplish this. A few shared ones allow you to choose this in control panel.
Most of these directives can be changed at runtime. If the php.ini
let :P.
The main references are in the official manual.
4
PHP.ini is the file with PHP settings ranging from extensions, directives, configuration of directories such as log, default locale.
To define specific configurations of a system or an environment (homologation and production), basically this file defines which 'rules' PHP should obey by default. Some settings can be reset at runtime with the function ini_set('diretiva', 'valor')
.
Ex: Redial error display:
ini_set('display_errors', true);
Browser other questions tagged php configuration ini
You are not signed in. Login or sign up in order to post.
php.ini is a PHP configuration file on the apache server, in which are defined operating directives of the php interpreter.
– user28595
is independent of Apache, Diego..
– Daniel Omine