Create a new text file, You should upload this file to the exact directory you want to test. copyy and paste the following code and save:,
<?php
phpinfo();
?>
Lastly, save the file as phpinfo.php and browse directly to the file from your browser. For example www.mydomain.com/phpinfo.php