How to locate of your php.ini File

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  

Different hosts use different location for storing and accessing files and so you’ll need to research where your php.ini file. To do that

Step 1. Create a script to display your PHP information

Create a very simple php script and place it in your home directory(www or public_html or httpdocs). Use script editor or a plain text editor (vi editor, nano) and create file called phpinfo.php with following code:

<?php phpinfo(); ?>

In your browser address bar, access the file by typing in: http://yourdomain.com/phpinfo.php

You’ll get a complete list of all your php settings.
In the phpinfo.php page you can see:

the PHP version at the top of the file.
the location of your php.ini file
If you scroll down the page, and you can find the current version of MySQL. and php settings like safe_mode and register_globals and much much more.

This will work for local computer using XAMPP or WAMP as well.


Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *