How to configure Azure Web Apps to support PHP in HTML

Viewed 2309

I am new to Azure and I am testing the Web Apps service.
I have a basic static website with a simple contact form in PHP, but it does not seem to work.
Reading the Azure documentation here has made me feel more lost than before.

I have done some basic testing and it seems that Azure Web Apps support PHP files like this phptest.php

<?php echo "hello world"; ?>

but fail when PHP is integrated with HTML, like this example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
   <HEAD>   
      <TITLE>Use PHP in HTML files</TITLE>  
   </HEAD>  
   <BODY>       
      <h1>
         <?php echo "It works!"; ?>     
      </h1>
   </BODY>
</HTML>

Can someone guide me through this?
What must I configure in my Web App? Do I need to link any dlls?
Thank you!

1 Answers
Related