954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to convert a site in html/css to PHP?

Hi dear friends,

a few days before I did a work in simple html and css. As the same service is going to add some database operations they have asked me to re do the same with php. Is it possible to add the new pages alone in php. Or do I have re do all again?

The site which has been done already using css/html is Newgenre Bpo Solutions

It' will be a great help if you can give some advice regarding this. As you can see in the site above, they need the same type of layout. So how to do this.

davidm23
Light Poster
46 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

I can promise you, there's nothing easier than this:
1) rename your html-file to the extension ".php" so that your parser knows it has some code to execute.
2) Everywhere you want PHP-code you can simply include it in your HTNL:

HTML-style-formatting
<?
your PHP-code comes here
?>
and HTML-style-formatting again

That's all you've to do.

sDJh
Posting Whiz in Training
259 posts since Aug 2005
Reputation Points: 56
Solved Threads: 29
 

Its very easy to do, Just change extension .html to .php. Run this on server. It will works fine.

mrvijayakumar
Newbie Poster
1 post since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

Thanks for the info SDJ

Mr. Vijayakumar are you sure that just changing the extension will give the exact results?

davidm23
Light Poster
46 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You