Test whether your host supports PHP

You can test whether your host supports PHP by following the steps below:

  1. Create a file in Notepad (or similar text editor) named test.php (note that the file extension must be ".php" instead of ".htm").
  2. Insert the following code in the file:

    <?php echo "Hello World!"; ?>
     
  3. Upload the file to your web host.
  4. Open the file in your browser.
  5. If the browser writes "Hello World!" your web host supports PHP and you are ready to go. Otherwise contact your hosting provider for more information.

That's it! Now are you ready to code your first PHP page. Hurry on to Lesson 3!


Related topics in the PHP ForumRepliesViews
Retrieve data from the database -error1438519
Lesson 20 - undefined id error message.767102
my code is not working25979
error04928
PHP and jQuery with AJAX upload not working17887

+ Post a new topic


<< Lesson 2: Servers

Lesson 3: Your first PHP page >>