[web] what is difference between php/html

Started by
2 comments, last by RSC_x 16 years, 3 months ago
hi all . i've read allmost any book about html i found but not any about php. i was thinking its bad choice. so i want to know what is the difference between php and html. is it something like php. or is it server specific like sql. and is it boult in like html.? thanks.
© Loading... !!!
Please Wait...!
Advertisement
PHP is a turing-complete server-side scripting language generally used to dynamically generate HTML pages in response to HTTP requests.
HTML is a Markup language, PHP is a programming (or scripting) language.

In a typical simple website, PHP is used to communicate with a database and output the results in a HTML or XML format:

-------- SERVER ---------|-- CLIENT--||                        |           ||  Database <----> PHP <----> HTML   ||                        |           |-------------------------|------------


Although theoretically you could use a language anywhere, PHP is a mainly a server side language. It can also be used for generating text, image or PDF files, file system operations, encryption, compression etc.

Quote:Original post by RSC_x
is it server specific like sql.

Although there are certainly differences in syntax, capabilities and behavior, most of the SQL syntax isn't database engine specific.
thanks guys.
that explains it.
© Loading... !!!
Please Wait...!

This topic is closed to new replies.

Advertisement