Most of the server support PHP and MySQL but if you are having a problem running PHP code so how will We will check my server PHP code supporting or not.

Testing for PHP Support

Creating a blank text file using Notepad or any other code editor name it test.php the .PHP extension at the end of the file is very important and put the following code to test your server.

Test.PHP you can upload on your server or you can run this file on a localhost


<?php print_r(phpinfo()); ?> 

This line of code will return all the details about your PHP it means which version you are using which extension are enabled and lot more thing it will show you all list of things in your browser.

Thanks, May this example will help you.