Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 15-01-2009
Member
 
Join Date: May 2008
Posts: 181
What is the difference between JSP and PHP?

Hello,

I know somewhat javascript but don't know anything about PHP. I need to know in what ways is PHP different than JavaScript. Which is easier to learn ? and which one is more useful?
Reply With Quote
  #2  
Old 15-01-2009
Member
 
Join Date: May 2008
Posts: 353
Re: What is the difference between JSP and PHP?

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.

PHP, 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.
Reply With Quote
  #3  
Old 15-01-2009
Member
 
Join Date: May 2008
Posts: 980
Re: What is the difference between JSP and PHP?

Javascript and PHP are pretty similar to program if you know the syntax.
Reply With Quote
  #4  
Old 20-04-2009
Member
 
Join Date: Apr 2009
Posts: 1
Re: What is the difference between JSP and PHP?

First: JSP is Java Server Pages, a Java technology to create dynamic web pages through scriptlets.

The major difference between PHP and JavaScripts it's the runtime enviroment. PHP it's a server side language and JavaScript it's client side.

Actually the web applications implements both. Usually JavaScript for data validation and retrieve asynchronous data through xmlhttp Request (also see Ajax).

To run JavaScript you don't need nothing, because javascript run on internet browser.
PHP run on a webserver. The most famous is APACHE HTTPD SERVER (see http://apache.org). You need the PHP interpreter too.

Search for AppServ on http://sourceforge.net. This package include:
-Apache
-PHP
-MySQL

Read about AJAX (Asynchronous JavaScript and XML).

Some useful books:

Beginning Ajax with PHP - From novice to Professional
How to do Everything with PHP and MySQL

Download the manual from http://php.net website.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What is the difference between JSP and PHP?"
Thread Thread Starter Forum Replies Last Post
What is difference between RAM and ROM? Harper 21 Motherboard Processor & RAM 5 30-01-2010 09:00 AM
Difference between OOP and AOP Sarfaraj Khan Software Development 5 20-01-2010 09:20 AM
Difference between jsp and asp.net Crespin Software Development 3 24-11-2009 06:57 AM
Difference between wap and wep Soggy Bottom Networking & Security 3 23-11-2009 09:34 AM
Difference between IDE and ATA LALETTE Hardware Peripherals 3 09-01-2009 10:34 AM


All times are GMT +5.5. The time now is 07:02 AM.