I am using xampp on my Ubuntu OS. And I need to know what version of PHP my xampp is using. How do I do that?
3 Answers
Put this in your root directory:
<?php
phpinfo();
?>Save it as phpinfo.php and point your browser to it (this could be )
- More information (you can get much more information than just the version).
- Example (random image):
Try with command from terminal
sudo /opt/lampp/bin/php -v first you have to need the version of your Xampp
xampp -v or
xampp --versionThen you can check the php version from xampp website
you can't know it from command line since it's bundled inside the Xampp
3