You are being forwarded to the lastest updates ot his page!
Or you can Click Here if it doesn't work or you don't wish to wait.

PHP Vs JSP

Vikrama Sanjeeva
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.


aaronh
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
Hi,
quote:
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.


aaronh
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
quote:
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
On this same topic, please excuse my ignorance, but how does PHP support Java?


weknowtheworld
I have heard that PHP supports Java in Zend..


Gregg Bolinger
quote:
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.