php-ini-file-configuration-
php-ini-file-configuration-
PHP Tutorial PHP Exercises PHP Array PHP String PHP Calendar PHP Filesystem PHP Math PHP Programs PHP Array Programs PHP String Programs PHP Interview Questions PHP GMP
All the settings related to registering global variables, uploading maximum size,
displaying log errors, resource limits, the maximum time to execute a PHP script, and
others are written in a file as a set of directives that helps in declaring changes.
Note: Whenever some changes are performed in the file, you need to restart our web
server.
It helps in the easy administration of web server using these configuration files. We can
also write our own custom configuration files.
<?php
echo phpinfo();
?>
Note: Keys in the file are case-sensitive, keyword values are not spaces and lines
starting with a semicolon are ignored. The file is well-commented. The Boolean values
are represented by On/Off, 1/0, True/False, Yes/No.
The file contains a set of directives with a set of respective values assigned to it. The
values can be string, a number, a PHP constant, INI constants, an expression, a quoted
string or a reference to a previously set variable. Expression in the INI file is limited to
bitwise operators or parentheses. Settings with a particular hostname will work under
that particular host only.
memory_limit: This setting is done to show the maximum amount of memory a script
consumes.
Whenever we install PHP, we can locate the configuration file inside the PHP folder. If
using xampp, we can find the configuration file in one or many versions, inside the path
‘\xampp\php’.
Note: Other versions of this file are php.ini-development and php.ini-production. The
most preferred one is php.ini-development file.
Similar Reads
PHP php.ini File Configuration
At the time of PHP installation, php.ini is a special file provided as a default configuration file. It's a very essential
configuration file that controls, what a user can or cannot do with the website. Each time PHP is initialized, the…
5 min read
Enumerations in PHP
Enumeration (or enum) is mainly used to assign names to integral constants, the names make a program easy to
read and maintain. In PHP, enumeration datatypes can be implemented using and extending abstract classes.…
3 min read
2 min read
2 min read
How to convert XML file into array in PHP?
Given an XML document and the task is to convert an XML file into PHP array. To convert the XML document into
PHP array, some PHP functions are used which are listed below: file_get_contents() function: The…
2 min read
3 min read
2 min read
3 min read
2 min read
3 min read
3 min read
2 min read
2 min read
2 min read
3 min read
1 min read
1 min read
2 min read
How to delete a file using PHP ?
To delete a file by using PHP is very easy. Deleting a file means completely erase a file from a directory so that the
file is no longer exist. PHP has an unlink() function that allows to delete a file. The PHP unlink() function takes tw…
2 min read
Company Languages DSA Data Science & ML Web Technologies Python Tutorial
About Us Python Data Structures Data Science With HTML Python Programming
Corporate & Communications Address: Legal Java Algorithms Python CSS Examples
A-143, 7th Floor, Sovereign Corporate Privacy Policy C++ DSA for Beginners Data Science For JavaScript Python Projects
Tower, Sector- 136, Noida, Uttar Pradesh In Media PHP Basic DSA Problems Beginner TypeScript Python Tkinter
(201305)
Contact Us GoLang DSA Roadmap Machine Learning ReactJS Web Scraping
Registered Address: Advertise with us SQL Top 100 DSA Interview ML Maths NextJS OpenCV Tutorial
K 061, Tower K, Gulshan Vivante GFG Corporate Solution R Language Problems Data Visualisation Bootstrap Python Interview
Apartment, Sector 137, Noida, Gautam Placement Training Android Tutorial DSA Roadmap by Pandas Web Design Question
Buddh Nagar, Uttar Pradesh, 201305 Program Tutorials Archive Sandeep Jain NumPy Django
GeeksforGeeks All Cheat Sheets NLP
Community Deep Learning