How to find php version and php.ini file location path?

We can view the php settings by creating a php file in our web root with the following code: <?php phpinfo(); ?> Let the name of the file be phpinfo.php The file location will be: /var/www/phpinfo.php (For Linux) C://xampp/htdocs/phpinfo.php (For Windows with Xampp) C://wamp/www/phpinfo.php (For Windows with Wamp) Open http://localhost/phpinfo.php in your browser in your … Read more