[web] what is difference between php/html
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.
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:
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.
Although there are certainly differences in syntax, capabilities and behavior, most of the SQL syntax isn't database engine specific.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement