|
Posted by Erwin Moller on 11/16/20 11:31
>>Shailesh wrote:
> Hi All,
> can anybody tell me detailed diffrence between PHP and JSP?
> Thanx
> Shailesh
Detailed?
Wow. :-)
Can you tell me the detailed differences between Chinese and English?
;-)
The language of JSP is Java and based on the J2EE specifications.
The language in PHP is PHP.
Both languages have their pro's and con's, but to ask us to describe the
detailed differences: that is a lot to ask. :-)
Some differences might include:
java: strongtyped data. All variables should be declared.
PHP: flexible, variable behave 'naturally' alltough they all have a type
defined behind the scenes (like integer, string, etc)
Java: Objectoriented, always.
PHP: You can mix in Objectoriented stuff to your liking.
JSP: Really resident and running on a server, so you always have some
running processes you can use for timers, etc.
PHP: Will fire up the php-engine when a request arives from a client.
So if you need sheduled tasks, you have to fall back to cron and the like.
And for starters:
Java is surely harder to master compared to PHP, but more suitable for
complex tasks.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|