- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of ini_set() in PHP?
PHP allows the user to modify some of its settings mentioned in php.ini using ini_set(). This function requires two string arguments. The first one is the name of the setting to be modified and the second one is the new value to be assigned to it.
Not all the available options can be changed using ini_set(). There is a list of all available options in the appendix.
The new value for the option.
<?php ini_set('display_errors', '1'); ?>
Given the line of code will enable the display_error setting for the script if it’s disabled. We need to put the above statement, at the top of the script so that, the setting remains enabled till the end. Also, the values set via ini_set() are applicable, only to the current script. Thereafter, PHP will start using the original values from php.ini.
- What is the use of the @ symbol in PHP?
- What is Practical Use of Reversed Set Operators in Python?
- What is the use of sinon.js?
- What is the use of %n in printf()?
- What is the use of NCHAR in MySQL?
- What is the use of cin.ignore() in C++?
- What is the use of $ErrorView in PowerShell?
- What is the use of constructor in Java?
- What is the use of set.seed in R?