html vs. php

Reply

Join Date: Oct 2007
Posts: 6
Reputation: Labby77 is an unknown quantity at this point 
Solved Threads: 0
Labby77's Avatar
Labby77 Labby77 is offline Offline
Newbie Poster

html vs. php

 
0
  #1
Nov 30th, 2007
Hello all master coders,

I have been doing my site exclusivley in html. What is the big differences bewteen php and html? What are the advantages/disadvantages? What, if any would be the penalty from going from an html site to a php site? Would this hurt the PR I have already gotten as well as the search results? Woud it appear to be a whole new site?

Please discuss.

Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 142
Reputation: MitkOK is an unknown quantity at this point 
Solved Threads: 12
MitkOK's Avatar
MitkOK MitkOK is offline Offline
Junior Poster

Re: html vs. php

 
0
  #2
Nov 30th, 2007
Hi.

You cannot compare those two.
PHP is server-side programming language, providing dynimic web content.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 72
Reputation: innovativeatul has a little shameless behaviour in the past 
Solved Threads: 0
innovativeatul's Avatar
innovativeatul innovativeatul is offline Offline
Junior Poster in Training

Re: html vs. php

 
0
  #3
Dec 1st, 2007
I agree with mitkok
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 72
Reputation: innovativeatul has a little shameless behaviour in the past 
Solved Threads: 0
innovativeatul's Avatar
innovativeatul innovativeatul is offline Offline
Junior Poster in Training

Re: html vs. php

 
0
  #4
Dec 1st, 2007
The only change you will have if you move from html to php is a bit loss in search engine rankings. But a good Optimization can easily overcome that.

thnx,
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 87
Reputation: TopDogger is an unknown quantity at this point 
Solved Threads: 5
TopDogger's Avatar
TopDogger TopDogger is offline Offline
Junior Poster in Training

Re: html vs. php

 
0
  #5
Dec 1st, 2007
As MitkOK mentioned, PHP is a server-side language, which means the PHP code is executed on the server before sending it to the browser as client-side code. Server-side languages allow you to pull and display data from databases and create custom pages based upon requests from a user.

If you switch from HTML to PHP on an existing site you can redirect each page using a 301 redirect in the .htaccess file. That way, you will not lose any traffic. When the search engines see the 301 status code they should change the URL in their databases to reflect the new URL.

Using a 301 Permanent Redirect

Search engines treat pages with PHP extensions the same as HTML pages. But if you do not redirect the old URLs using a 301 redirect, the new pages will start all over in the search engine rankings. If you change a site to PHP, do not leave the old HTML pages in the site. You may get hit with a duplicate content penalty if you do that.

Hope that helps.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC