1/1/2023 0 Comments Easyphp vs wamp![]() ![]() Go ahead and create the phpinfo.php file with the following contents and place it in your document root: It will tell you where php.ini is located, and it will also output all the important PHP configuration information. ![]() This is where the phpinfo() function comes to the rescue. On the other hand, if you’re running another operating system, then it’s difficult to guess the exact location of the php.ini file-there are several possibilities. If you’re running Windows, you'll likely find the php.ini file within the directory of your PHP installation in the system drive. This can be tricky-the location of the php.ini file vastly varies by the environment you’re running PHP with. In this section, we’ll see how to find the php.ini file which is loaded when you run the PHP script. In fact, as a PHP developer, it’s inevitable, and you’ll encounter it sooner rather than later. However, the php.ini file provides a couple of important settings that you want to make yourself familiar with. ![]() In fact, there are no critical configuration parameters that you must set in order to run PHP. PHP can run happily with the settings provided in the default php.ini file, since PHP ships with these default recommended settings. On the other hand, it’s certainly possible that you've never needed to modify php.ini. Quite often, you’ll find you need to tweak settings in the php.ini file. This file allows you to configure a few important settings that you should be aware of. When PHP is run, it looks for the php.ini file in some specific locations and loads it. Whether you’re a PHP beginner or a seasoned developer, I’m sure that you’ve heard of php.ini: the most important PHP configuration file. ![]() From the beginner’s perspective, we’ll discuss what it’s meant for, where to locate it, and a couple of important configuration settings it provides. In this tutorial, we’re going to discuss php.ini-the main configuration file in PHP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |