what are javascripts, JSP and PHP?? what do they do and what are the difference between them??
I know that PHP is a server side language, and it is mainly used to acces databases with MySQL, while javascript is a executed by the browser, not sure about JSP though
JSP is also server-side, and used to write web apps in Java. I wouldn't recommend it for a beginner, as it's... Well... Kind of crap. Heh.
Yes, PHP is used most on the server and Javascript on the browser; they can be used well together as well, i.e. use PHP to serve up a web-page that has JS scripts that make the page more functional. I wouldn't go so far as to say JSP is crap :), although I don't care for it much. JSP stands for Java Server Pages, and like PHP, is used (in a Java environment) to create web pages on the server, before sending them to a browser. JSP can (if you use it right) be used to let one person/team design your pages, while another person/team handles the business logic and database stuff. (JSP, if you don't use it right, can generate a seriously ugly mess, that even makes PHP look good :)
As a technology, JSP is basically the same thing as PHP, but 10 times harder to deploy. Just about every Java framework that I've seen replaces JSP with something else. Thus my statement :) You can achieve separation of business logic and views in PHP as you can in Java. There are some advantages to Java (though there are far more to the JVM than there are to the Java language itself), but JSP is definitely one of the ugly children.
Join our real-time social learning platform and learn together with your friends!