how to execute php code in html

1. create   .htaccess  file and write code 

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html




this file in htdocs or WWW folder and create your html page and write php code 


in html file


Example :


myfolder
   .htaccess
   demo.html


in demo.html


<?php echo "My Name is rajeev "; ?>

Comments

  1. This website was... how do I say it? Relevant!
    ! Finally I've found something that helped me. Appreciate it!

    Have a look at my web-site; https://www.wellki.com/diets/diet-trends/3878-5-hour-energy-shots-what-are-the-risks

    ReplyDelete
  2. Its such as you learn my mind! You seem to know so much about this,
    such as you wrote the guide in it or something. I feel that you can do with a few p.c.
    to drive the message home a little bit, but other than that, that is
    wonderful blog. A great read. I'll definitely be back.


    Also visit my site - WEight Lifting Fvs Cardio For Weight Loss (cuteboylist.com)

    ReplyDelete
  3. I am genuinely grateful to the holder of this site who has shared this fantastic piece of writing at at this time.



    Also visit my blog post; Lift Or Cardio First

    ReplyDelete

Post a Comment

If you Satisfied , Please Leave a comment

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress