Anonymous

What Is The Difference Between JavaScript And PHP?

12

12 Answers

Anonymous Profile
Anonymous answered
Java script is not language.its a client side language that means its script..and its can be used for create web page...
PHP is a Hypertext Pre-processor.. Its can be used for create web page..any PHP code in requested file can be executed by PHP run time..its run on only web server.
To contradict what has been said so far, the difference is that JavaScript can be written on the server side too and can get very complicated. JavaScript is often used as the client scripting language on the same page with PHP which does the server side stuff. ASP or ASP.net is an alternative to PHP.
For anyone who is interested in making websites or web site applications, you may have heard of these two terms but you cannot differentiate between the two. Basically, the first one, JavaScript
, is a client side programming language. This means that you can design and test this on your own computers server. This makes it easier if you cannot have access to the internet at the given time. It can be quite easy to learn as well but there is a limit to what you can do with JavaScript.

On the other hand you have the more powerful PHP and if you can learn this, you could produce some powerful and user interactive websites. However the problem with php is that it is a server side programming language, meaning that you have to test it on a web server. So PHP allows you to design powerful websites and Javascript is the easiest to learn out of the two.
Ben Cohen Profile
Ben Cohen answered
To contradict what has been said so far, the difference is that JavaScript can be written on the server side too and can get very complicated. JavaScript is often used as the client scripting language on the same page with PHP which does the server side stuff. ASP or ASP.net is an alternative to PHP.
Richard Prangnell Profile
The essential difference between JavaScript and PHP is that JavaScript code can be interpreted by and interact with the browser on your local computer. The benefit of this is that web forms can be checked for compliance with the website owners' requirements LOCALLY, without the web page having to be transmitted to the web server for checking, failing checks and then having to be re-transmitted to your browser with an error message. So JavaScript is tremendously important in minimising Internet bottlenecks.
Gopinath Sundaram Profile
Javascript is processed mostly by the browser(client side),while PHP is the server side language used to handle dynamic pages.
Aimee Rogers Profile
Aimee Rogers answered
For anyone who is interested in making websites or web site applications, you may have heard of these two terms but you cannot differentiate between the two. Basically, the first one, JavaScript, is a client side programming language. This means that you can design and test this on your own computers server. This makes it easier if you cannot have access to the internet at the given time. It can be quite easy to learn as well but there is a limit to what you can do with JavaScript.

On the other hand you have the more powerful PHP and if you can learn this, you could produce some powerful and user interactive websites. However the problem with php is that it is a server side programming language, meaning that you have to test it on a web server. So PHP allows you to design powerful websites and Javascript is the easiest to learn out of the two.
Anonymous Profile
Anonymous answered
Java script is not language.its a client side language that means its script..and its can be used for create web page...
PHP is a Hypertext Pre-processor.. Its can be used for create web page..any PHP code in requested file can be executed by PHP run time..its run on only web server
Anonymous Profile
Anonymous answered
PHP is cooler.
Anonymous Profile
Anonymous answered

PHP makes
it possible to create pages that change depending on the data given to php. For example you can show a different page to people from different countries or
you can show a different page depending on what was posted recently on the
page. It's the real programming language which runs in your browser. It gives
your webpage power. Using JavaScript you can put calculations, logical
conditions and all the programming functionality. HTML alone can't do that.

Broad Kenny Profile
Broad Kenny , learningslot, answered
Have you heard of Facebook? They use PHP. They also make heavily use of JavaScript. That should answer at least one of your questions. JavaScript gives you possibilities you don't have with PHP and vice versa. You have to think about what you want/need and then decide which languages you need

james jones Profile
james jones , Web Design Expert, answered

People still confused about programming is easy
stuff or tough, anyway if you want to learn best & easy language than is
PHP. There are some simple resources available online like...

(1)W3Schools OnlineWeb Tutorials

(2)PHP Manual -Manual

(3)PHP ClassScripts

(4)PHP -
Hypertext Preprocessor

(5)WebCheatSheetTutorials

& if you want expert help, just go with some
featured programming school of India like gootlyacademic (Programming School of Ahmedabad)

Hope it
helpful for programmers likeC/C++/PHPetc.


Anonymous Profile
Anonymous answered
JavaScript is a client -side scripting language and php is a server site scripting language
Anonymous Profile
Anonymous answered
While Php runs on your server and has the main function to produce html code for your browser to read, Javascript runs on your browser and execute specific local tasks.

Answer Question

Anonymous