Page 1 of 1
HTML vs PHP: What is the core difference?
Posted: Mon Jun 05, 2006 6:00 am
by uz
Hey guys
pls explain what are the core differences between these two langs
i know php is scripting but what is the functionality differences?
Posted: Sat Jun 10, 2006 9:38 am
by Lixas
maybe i will tell you some example what you can with php and what you can not do with html: with php you can...
- create loops for some kind cicles
- manipulate digits, strings, arrays, pointers
- work with databases like mysql or postegree
- create images on the fly
- create users authentication system
- create all kind of files on the fly (xml, txt, jpg, jpeg, png........ and so on)
- manipulate files (copy, delete, rename) on server
- query external sites for information and show in you own page
All this stuff is not possible in html. And one more thing: mostly php parsing results is html page, so i guess sometimes for noobies in web development it dificult to catch a difference between html and php
Posted: Sat Jun 10, 2006 10:18 am
by Kaky
Or as i know it html is a static page with no user interaction put a php site is dinamic with user<--->server interraction.
Posted: Mon Jun 12, 2006 10:31 am
by ddarude
Kaky wrote:Or as i know it html is a static page with no user interaction put a php site is dinamic with user<--->server interraction.
PHP makes our job easier

Also ... less disk space :P
its
Posted: Sat Nov 04, 2006 1:48 pm
by rwshthn
create loops for some kind cicles
manipulate digits, strings, arrays, pointers
work with databases like mysql or postegree
create images on the fly
create users authentication system
create all kind of files on the fly (xml, txt, jpg, jpeg, png........ and so on)
manipulate files (copy, delete, rename) on server
query external sites for information and show in you own page
and php program good than front page
Posted: Wed Nov 22, 2006 12:12 am
by hossamkiwan
One more point
PHP near to C langauge
Posted: Wed Nov 22, 2006 4:37 am
by Surreal
PHP is a server side language, which is actually a programming language. HTML is a mark up, not actually a language, and is also client based.
Posted: Thu Dec 21, 2006 11:30 am
by Paolo1993
as they say php is server sided while html are just pages
Posted: Sat Dec 23, 2006 5:55 pm
by vinter
HTML is a language that is interpreted by the internet browsers. It tells the browser what to show and how to show it on a web page. It runs on the client's computer. However, it lacks certain features that are implemented in client side scripting languages like javascript.
PHP is a language that runs on the server and creates HTML pages. It is a proper programming language and contains all the constructs a programming language should have, including loops, conditional statements et al.
Thus when a client requests a PHP page from a server, following is the sequence of events :-
1. The request reaches the server.
2. The server runs the PHP script on itself.
3. The PHP script generates an HTML page.
4. The server sends back this HTML page to the client.
5. The client's browser interprets this HTML.
To put it in a nutshell, PHP and HTML are two completely different entities, the only apparent similarity might be to do with the fact that they are both related to web development.
Posted: Tue Dec 26, 2006 4:22 pm
by annamarie
simple answer is
html : static web
php : dynamic web