Hey guys
pls explain what are the core differences between these two langs
i know php is scripting but what is the functionality differences?
HTML vs PHP: What is the core difference?
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
PHP makes our job easier Also ... less disk space :PKaky 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.
http://www.stonersdent.com
63.208.142.108:27015
63.208.142.108:27015
its
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
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
-
- Posts: 344
- Joined: Tue Nov 07, 2006 8:42 pm
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.
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.