PHP on profreehost

Jaymeen
edited November -1 in Support Forums

I wrote a simple php script to check whether my files are running properly or not. But I found out that it is running perfectly on xampp localhost server but while running my file, practice.php after uploading on profreehost only the HTML part present in it is running and the PHP part is being ignored.

Here is my PHP code :

<!DOCTYPE html>



Practising PHP


<?php 

    echo "Hey there";

?>

<form method = 'post'>
Name : <input type = 'text' name = 'name'>
Email-Id : <input type = 'text' name = 'email-id'>
<input type = 'submit' value = 'Submit'>
</form>

</body>

output : 59364157ce1a7.png

as we can see, the PHP part in which I have echoed a message is not printed on the document.
Can anyone help me with it?

Comments

  • Jaymeen
    edited November -1

    Mr. badbot, thank you very much, your idea worked very precisely.
    You are right, name_of_my_site.com/practice.php works perfectly.

    And yes, I like solving questions on hackerrank ...
    Once again, Thank you so much.