how do i know if php is running code example
Example 1: test if php is installed
Create a php file containing code <? php echo phpinfo(); ?> and save it as test.php.
then you have installed PHP properly.
Example 2: how to check if php is compiling
<?php
phpinfo();
?>