943,987 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1218
  • PHP RSS
Nov 30th, 2007
0

html vs. php

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Labby77 is offline Offline
6 posts
since Oct 2007
Nov 30th, 2007
0

Re: html vs. php

Hi.

You cannot compare those two.
PHP is server-side programming language, providing dynimic web content.
Reputation Points: 59
Solved Threads: 12
Junior Poster
MitkOK is offline Offline
142 posts
since Jul 2007
Dec 1st, 2007
0

Re: html vs. php

I agree with mitkok
Reputation Points: 3
Solved Threads: 0
Junior Poster in Training
innovativeatul is offline Offline
72 posts
since Dec 2007
Dec 1st, 2007
0

Re: html vs. php

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,
Reputation Points: 3
Solved Threads: 0
Junior Poster in Training
innovativeatul is offline Offline
72 posts
since Dec 2007
Dec 1st, 2007
0

Re: html vs. php

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.
Reputation Points: 15
Solved Threads: 5
Junior Poster in Training
TopDogger is offline Offline
87 posts
since Aug 2005

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: converting from cgi perl
Next Thread in PHP Forum Timeline: Wordpress Blog Help. Getting Error. Need Help Please.





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


Follow us on Twitter


© 2011 DaniWeb® LLC