what is the difference between html and php website?
usman a
2011-12-09 13:02:57 UTC
what is the difference between html and php website?
Six answers:
Magic Matt
2011-12-09 13:07:20 UTC
They are completely different languages. PHP is used for server-side coding, whereas HTML is client-side code.
HTML is used to make every website in existence.....even ones using PHP.
PHP is a programming language (such as Java, VB, C#, etc).
anonymous
2016-05-16 05:39:01 UTC
PHP works on anything, ASP.NET works only with Microsoft Linux makes up the majority of servers in the world Linux is free, Microsoft Server cost a pretty penny Basically what I'm saying, PHP is easier and usually cheaper to find a host for while ASP.NET is limited to window's host. MySQL talks to PHP not the HTML. There is no problem echoing out data retrieved from the database using PHP though.
brisray
2011-12-09 15:34:22 UTC
HTML a language used for the gross layout and content of a web page. CSS is used for the detailed layout.
What PHP and other server side languages, like ASP, do is add functionality to a web pages. They can for example connect to a database, do processing of information and a whole bunch of other tricks. The output of such server side languages has to be in HTML format so the browser can render it properly as a web page. One useful function of such server side languages is the ability to reuse information, like menus, headers and footers as well as the main content to make a web page appear as a whole, while it is actually combined of one or more HTML files. This can be done using iframes in HTML but is a lot easier using PHP.
JavaScript is a client side language. That is, all the processing is done on the visitor's computer.
Both client side and server side languages are very useful for creating dynamic pages, whereas HTML has no processing use at all - it's used for mark-up only and is not a processing language.
?
2011-12-09 13:11:13 UTC
html websites are static websites and you need javascript or vbscript to make it dynamic.Also it uses client side scripting.PHP is server side scripting dynamic coding language for web applications.For example when you visit a webpage some code gets downloaded in your computer which is used by browser to display content this is HTML and may use javaScript for alerts like wrong input or invalid entry in some form.Php comes into play in such websites which are designed in PHP and when you submit user name password it is submitted to the server and server responds with a new page according to your input.So instead of browsing of pre saved pages new page is generated according to your input.Some other languages like asp.net and java servlets are also server side scripting language.
ron K
2011-12-09 13:16:23 UTC
well HTML can be done using client side processing so you don't need a web host whereas php is more to the server side of things.
anonymous
2011-12-09 13:05:21 UTC
html is what is used to display a web page.
php can be used as a programing language to display html or present a web page or take the information from a web page and put it in a data base.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for 'what is the difference between html and php website?' (Questions and Answers)