what is differnece between javascript and php

  1. JavaScript can be combined with HTML, XML and AJAX.
  2. JavaScript can handle only local tasks that are specific.MYSQL is not commonly used by JavaScript.
  3. JavaScript can import files of information available by mentioning the URL of the file in the address bar of the browser.
  4. In JavaScript the code can be viewed even after the output is interpreted.
  5. JavaScript executes within a browser’s window.
  1. PHP is embedded only with HTML and PHP cannot be combined with XML.
  2. PHP is used to produce web pages on the go, read and deploy databases, import the files available on the server, and gain files of data from further domains.
  3. PHP does not execute within a browser’s window.
  4. PHP commonly uses MYSQL as a database.
  5. PHP runs on server and the major functionality of PHP is to produce the HTML code which will be read by browser. In PHP, code will be available only after the server interprets it.

In short, php is a server sider language whereas javascript is client side language and