Hi guys!!! Please explain me the difference between PHP and HTML files?? According to your views.. All views accepted.. Thanks in advance Rohit
from what i know, php is server side (you can add databases and stuff) but i like php better, it's way more flexible
HTML is language used in designing a website and PHP is a language used if you want your site to be more dynamic like online application form. PHP is difficult for SEO as it required script
PHP: Pre Hyper Processot : a server side script language HTML: Hyper text markup language To execute php code you need php but html code can be executed in many way.
PHP is server side language. Executes in the server. HTML is Client side language. work in clients/users pc. best wishes ________________________________ Custom Lanyards
php and html are two different programming. PHP is used to accesss or retreive the data from database. HTML is used for designed website.it is hyper text markup language. PHP is used after HTML of the website.
if you are asking it from seo point of view .... then there is plainly no diff .... however most ppl prefer html over php(just a mindset).
u can put php code in html pages. I do this with my site, take a look at it http://www.a1newspapers.com/
HTML is a client side language. PHP is server side programming language used for dynamic websites along with html or any other client side design language. if you are asking seo wise then IMO html pages are better then php pages since they take lesser time to load and are easily accessible by search engine bots... as per my experience pure html static pages are good seowise... I would also like to know opinion of other seo experts on this.....
Static html and php-generated pages are identical, just static html would use up less cpu. Bots and users see them exactly the same
There are detailed definitions and descriptions of HTML and PHP in my Web Authoring FAQ - link in my signature block below. James
php creates a dynamic pages in which you can implement call to action, respond according to user response and many more... html pages are just static pages which appears same to everyone who access them. though you can add some effects in HTML pages using css and javascripts. if you are asking in terms of search engines, well.. few people believes that search engines are rankings html pages higher then php pages. but matt cutts says that, it doen't make any difference for G.
It really shouldn't be PHP vs HTML. Web pages are documents composed using HTML Markup -- PHP is a Server-side scripting language that performs document delivery and processing tasks. Here is an example of a Web page that uses PHP to selectively deliver it to various Browsers according to their capabilities. I will post the attending PHP code if there is interest. James
PHP is the server side scripting language (open source as well) where HTML is just a markup language.. your web browser cannot understand PHP, But can understand HTML.... HTML pages called static pages.. PHP pages called dynamic pages.. if you create your page in HTML, browser can directly understand it.. and if your page will be in PHP.. then PHP scripting first interpreted by webserver (apache or IIS) whatever you are using, and then it will throw the translated HTML to the browser so that browser can understand and layout the page... hope it helps.. regards,
I do agree and it is more common compare PHP to ASP, ASP.NET, Ruby on Rails, Python, CGI or even Java, but not HTML ·
as per my experience.. there can be PHP vs HTML.. its so important for beginners.. so that they can understand the difference.. and web architecture.. i had been giving lectures in the computer science department of reputed universities here.. and i taught them html, javascripting.. and then when switched to server side scripting, i had to told them the differences between client and server side scripting.. infact HTML is just markup languages.. but to get rid from confusions. beginners really need to know the differences.. cheers,