Sign in to follow this  
RSC_x

[web] what is difference between php/html

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this