pTutorial

New way to learn Programming

How to locate php.ini

PHP configuration or php.ini file

The php.ini file is also known as configuration file or you can say special file for PHP. The php.ini file is where you declare changes to your PHP settings.

Steps for locating php.ini file or configuration file

1. Create A PHP file with any name and type phpinfo() function as follows:

<?php

//Info.php

phpinfo();

?>

2. Copy this file into the WAMP or XAMP server. In general case C:\wamp\www\project

3. Than type URL on the browser http://localhost/project/info.php

How to locate php.ini

Now yow can see the path of the php.ini file inside the details.

Locate php.ini file in WAMP

  1. Start WAMP server first.
  2. Left click on WAMP tray icon and select PHP.
  3. Click on php.ini file

After each change in php.ini file you will have to restart the the WAMP server.

See Also


QUOTES OF THE DAY

Tomorrow life is too late, live today.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER