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.
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
posted
0
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
posted
0
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
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.
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.