You are on page 1of 2

1.Difference between PHP and JavaScript S.

No 1 PHP JavaScript

PHP runs on server and the major JavaScript can handle only local tasks functionality of PHP is to produce that are specific. the HTML code which will be read by browser. In PHP, code will be available In JavaScript the code can be viewed only after the server interprets it. even after the output is interpreted. PHP is embedded only with JavaScript can be combined with HTML and PHP cannot be HTML, XML and AJAX. combined with XML. 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. JavaScript can import files of information available by mentioning the URL of the file in the address bar of the browser.

PHP does not execute within a JavaScript executes within a browsers browsers window. window. PHP commonly uses MYSQL as a MYSQL is not commonly used by database. JavaScript.

2.Difference between JScript and JavaScript S.No 1 2 JScript JScript is released by Microsoft. JavaScript JavaScript is released by Netscape in partnership with Sun Microsystems

JScript is reverse engineered from JavaScript is a newly formed language. Javascript by Microsoft in order to have its own ECMAScript language. Microsofts JScript is a language JavaScript is a language independent openly implemented on the lines of the Java language of Sun of Netscapes JavaScript. Microsystems. JScript is used for creating active JavaScript is used for developing client and also online content for applications and server applications. WWW. All versions of JScript have Very few versions of JavaScript have access to ActiveX objects. access to ActiveX objects.

3.Difference between Java and JavaScript S.No 1 2 Java JavaScript

Java is termed as an Object JavaScript is a Scripting Language. Oriented Programming language. Java was originally created by Netscape,Inc. has developed the James Gosling belonging to Sun JavaScript programming language. Microsystems. Standalone applications applets are created by programming language. and Standalone applications or applets are Java not created by JavaScript. needs a

Java is known for the creation of JavaScript code always applications that can run on a browser for its execution. browser but it does not always require a browser for program execution.

5 6

Java code can survive on its own JavaScript should be placed through a as a stand alone Java Program. HTML document for its functioning. Java code should always be JavaScript code is always in text and it compiled. does not need compilation process.

And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/

You might also like