Jump to content

Whats the Difference


Ultrakd

Recommended Posts

Html is the Language used to write Web Pages.

PHP is a scripting language that allows you to write dynamic web pages.

 

PHP will interact with files and databases based on the User's input, ie: form interactions, links with query strings. Essentially, the php script is used to write the Html code for your page (sort of).

Html does not interaxct with files or Databases. A scritping language is needed for that.

Link to comment
Share on other sites

  • 3 weeks later...

HTML is what your Browser reads. It's a mainstream language that all browsers and websites use.

 

When a person requests a website page, the server send a HTML page to the user's browser. This HTML page will be same to all users who request it. Therefore HTML is a STATIC language. You cannot perform Calculations, Functions or complex decisions within HTML.

 

PHP is a server-side code. Server-Side means that this code is processed on the server, and only the Server can understand and process this code. After the server finishes processing the PHP code the file is then sent to the user's browser. So for example if some page served the Server's time: Each time the request is made to that page, the server processes the PHP code to display time, and sends it to the requester's browser. So every page sent will be different from the previous, because the time changes on each request.

 

I hope that's helpful :)

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...