943,608 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1401
  • PHP RSS
Aug 15th, 2009
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
davidm23 is offline Offline
46 posts
since Aug 2009
Aug 15th, 2009
0

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

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:
PHP Syntax (Toggle Plain Text)
  1. HTML-style-formatting
  2. <?
  3. your PHP-code comes here
  4. ?>
  5. and HTML-style-formatting again
That's all you've to do.
Reputation Points: 56
Solved Threads: 29
Posting Whiz in Training
sDJh is offline Offline
255 posts
since Aug 2005
Aug 18th, 2009
0

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

Its very easy to do, Just change extension .html to .php. Run this on server. It will works fine.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrvijayakumar is offline Offline
1 posts
since Aug 2009
Nov 23rd, 2009
0
Re: How to convert a site in html/css to PHP?
Thanks for the info SDJ

Mr. Vijayakumar are you sure that just changing the extension will give the exact results?
Reputation Points: 10
Solved Threads: 0
Light Poster
davidm23 is offline Offline
46 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: One DB record from two HTML forms
Next Thread in PHP Forum Timeline: Create a unique Hash





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC