Jump to content
  • Advertisement
Sign in to follow this  
RSC_x

[web] what is difference between php/html

This topic is 4001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
PHP is a turing-complete server-side scripting language generally used to dynamically generate HTML pages in response to HTTP requests.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!