Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

PHP Vs JSP

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
On this same topic, please excuse my ignorance, but how does PHP support Java?
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I have heard that PHP supports Java in Zend..
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic