Before you can work with PHP scripts and files, you must check to see if it is enabled on your server or local machine(computer). Use the “php_check.php” file code below to test and see whether or not your server can process PHP.
1. Create a new blank file in your favorite text editor
2. Place the code below into the new file and save it as “php_check.php”
3. Put it on your server, and view it with your browser, the output will tell you things.
Start Copy+Paste for this box here on this line of text
<title>PHP Check File</title>
print "<h1>Congratulations, your server can process PHP!</h1>";
print "<h3>Here you can view the PHP configuration on your server</h3>";
<h1>Sorry, PHP is not enabled on this server.</h1><br /><br />
<h3>Check your host provider documentation or contact
your host provider to ask them how to enable PHP.</h3>