
fault_user = username This setting is done to connect MySQL default username, if no other name is mentioned.fault_host = hostname This setting is done to connect to MySQL default server if no other server host is mentioned.file_uploads = This flag is set to ON if file uploads are included in the PHP code.Is done if we want to apply PHP to a portion of our website. The default value is on this setting doesn’t work on CGI mode it works on only module mode. ignore_user_abort = This settings control what will happen when the user click any stop button.Multiple directories are set using colons. include_path = This setting is done when we need to require files from the specified directories.Include() it at the end of every PHP file. auto-append-file = This setting is done when we need to automatically.auto-prepend-file = This setting is done when we need to automatically include() it at the beginning of every PHP file.magic_quotes_sybase = Off If this setting is set to off it should be off, this setting escape quotes.= Off If magic_quotes_sybase is set to On, this must be Off, this setting escape quotes. magic_quotes_gpc = on This setting is done in case of many forms are used which submits to themselves or others and display form values.

gpc_order = GPC This setting has been GPC Deprecated.warn_plus_overloading = Off This setting issues a warning if + used with strings in a form of value.The developer can change the order as per the need also. variables_order = EGPCS This setting is done to set the order of variables asĮnvironment, GET, POST, COOKIE, SERVER.session.save-handler = files You don’t need to change anything in this setting.short_open_tags = Off To use XML functions, we have to set this option as off.


Expression in the INI file is limited to bitwise operators or parentheses. The values can be string, a number, a PHP constant, INI constants, or an expression, a quoted string or a reference to a previously set variable. The file contains a set of directives with a set of respective values assigned to it. The Boolean values are represented by On/Off, 1/0, True/False, Yes/No. Note: Keys in the file are case-sensitive, keyword values are not spaces and lines starting with a To check file path use the following program: We can also write our own custom configuration files. It helps in easy administration of web server using these configuration files. Note: Whenever some changes are performed in the file, you need to restart our web server. Sometimes you need to change the behavior of PHP at runtime, then this configuration file is to use.Īll the settings related to register global variables, upload maximum size, display log errors, resource limits, the maximum time to execute a PHP script and others are written in a file as a set of directives which helps in Each time PHP is initialized, the php.ini file is read by the system. It’s very essentialĬonfiguration file which controls, what a user can or cannot do with the website. At the time of PHP installation, php.ini is a special file provided as a default configuration file.
