How to Convert HTML to PHP

23 March 2013

Internet Tricks, WebMasters

How to Convert HTML code to PHP code

This article is about to convert HTML to PHP by some simple methods without any software. HTML is a simple language and almost the people want to convert it to PHP, so that a normal person cannot understand or edit it. Below are the methods:

Method 1:

It is the simplest method. Simply rename the file and change its extension to “.php”. It will work same.

(Example: Rename “filename.html” to “filename.php”)

 

Method 2:

It is another method to make HTML complex. Just create a file with extension “.php”.

Open this file with notepad and write:

<?php echo ‘Your HTML Code Here‘; ?>

Enjoy the trick…!

, , , , , , , ,

No comments yet.

Leave a Reply

*