
Create a file in your htdocs directory (ask the location from your web hosting provider if you are not sure named test.php.
Open the file in your favorite text editor and add the line:
< ?php phpinfo() ?>

This technique will only work if your Apache server has PHP enabled (how to test php support in apache http server) and .htaccess enabled.