where to put a php file in cpanel which would serve my form in html
<p>I'm using Hostgator as my CPanel and a Domain. I created a website using html and in which I use a contact form on submit it goes to a php file and it sends me an email. </p>

<p>It works perfectly on amazon webserver but I don't know where to put my PHP files in hostgator cpanel. Should i install php config somewhere and put it there?</p>

<p>Thanks in advance.</p>

<pre><code>Here is my php code
&lt;?php
require 'PHPMailer/PHPMailerAutoload.php';

$name = $_POST['inputUsername']; 
$email_address = $_POST['inputEmail']; 
$message = $_POST['inputContent']; 

$mail = new PHPMailer;

//$mail-&gt;SMTPDebug = 2;
$mail-&gt;isSMTP();                                      // Set mailer to use SMTP
$mail-&gt;Host = 'smtp.gmail.com';  // Specify main and backup SMTP servers
$mail-&gt;SMTPAuth = true;                               // Enable SMTP authentication
$mail-&gt;Username = 'krishnakumar4315@gmail.com';                 // SMTP username
$mail-&gt;Password = 'password';                           // SMTP password
$mail-&gt;SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
$mail-&gt;Port = 587;                                    // TCP port to connect to

$mail-&gt;setFrom('something@gmail.com', 'Krishna');

$mail-&gt;addAddress('something@outlook.com', 'Krishna');               // Name is optional

$mail-&gt;isHTML(true);                                  // Set email format to HTML

$mail-&gt;Subject = 'Message From: '.$name;
$mail-&gt;Body    = $message ." &lt;b&gt;Email: &lt;/b&gt;".$email_address;
$mail-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail-&gt;send()) {
    echo 'Message could not be sent.';
    echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
} else {
header('Location: http://www.krishdev.com');    

}
?&gt;
</code></pre>