aspose file tools*
The moose likes PHP and the fly likes PHP Vs JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Reply locked New topic
Author

PHP Vs JSP

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
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.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
aaron ho
Greenhorn

Joined: Jan 07, 2003
Posts: 7
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

Joined: Sep 02, 2001
Posts: 756
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

Joined: Jan 07, 2003
Posts: 7
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

Joined: Nov 09, 2000
Posts: 6450
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

Joined: Nov 09, 2000
Posts: 6450
On this same topic, please excuse my ignorance, but how does PHP support Java?
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
I have heard that PHP supports Java in Zend..


<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PHP Vs JSP