Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
    Bookmark Topic Watch Topic
  • New Topic

PHP Vs JSP

 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
PHP and JSP both supports Java.Then what is the difference?.Secondly, when JSP is first compiled, it produces a servlet in background.Is there any mechanism in PHP like this?.
Bye,
Viki.
 
aaron ho
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
PHP and JSP both supports Java.Then what is the difference?
************************************
I am not sure the extent of support for Java in PHP. Has anyone ever done this? From articles on Zend.com (they write the PHP engine) they are moving to a more OO language which will have more Java support (probably).
.Secondly, when JSP is first compiled, it produces a servlet in background.Is there any mechanism in PHP like this?
************************************
PHP is a scripting language running at the webserver. The scripts are processed when the page is requested by the client. Essentially PHP is intrepreted, not compiled.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
Originally posted by aaron ho:

PHP is a scripting language running at the webserver. The scripts are processed when the page is requested by the client. Essentially PHP is intrepreted, not compiled.

How it could be interpreted?.It's juts like any other high level language.Infact not language!
Bye,
Viki.
 
aaron ho
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
How it could be interpreted?.It's juts like any other high level language.Infact not language!
************************************
Sorry, I should have said 'parsed' not interpreted. The zend engine parses the language, it is not interpreted.
aaron
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Vikrama Sanjeeva:
Hi,
PHP and JSP both supports Java.Then what is the difference

One huge difference is that JSP is part of the J2EE framework, and therefore supported by other J2EE technologies, PHP is not. As an example, Struts will easily render output to JSPs, but would probbly take quite a bit of stroking to send it's output to PHP.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Report post to moderator
On this same topic, please excuse my ignorance, but how does PHP support Java?
 
Neerav Narielwala
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have heard that PHP supports Java in Zend..
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Neerav Narielwala:
I have heard that PHP supports Java in Zend..


Why did you wake up a nearly 4 year old post to state hear say? I'm going to close this topic, primarily because it is 4 years old and it's technically in the wrong forum anyway.
 
    Bookmark Topic Watch Topic
  • New Topic