Jump to content

php vs jsp

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Hello people,
This summer i'd like to teach myself a bit of php OR jsp. What would be the main differences between the two?

Both 'technologies' are server side helping to create dynamic web pages. I'd also like to learn AJAX whilst doing that. It's basicly Javascript right? So i suppose it isn't much harder/easier in 1 language or the other..

Is it the cross-platform of Java again?

I have the feeling that php is more commonly used than jsp, but i'm not too sure about that.

I allready have the Java knowledge, and did ASP with C#, while the php kinda looks like shell scripts in linux :p And i'm not very good at that. But that may be a reason to get into php to get better at it.:confused:

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
JSP = Java (with all the good and bad that goes with it)
PHP = PHP (with all the good and bad that goes with it)

Which is easier depends on how much Java you already know, and how much you intend to learn.

What will probably be the hardest to learn is the various web-concepts associated with submitting/processing form data, and generating valid HTML, CSS, and JavaScript to the client.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
ManZzup

ManZzup

    Newbie

  • Members
  • PipPip
  • 10 posts
probably choose php bcuz its soo easy to learn compared to java
yet the capabilites of java cannot be achieved by php

#4
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
I recomend PHP. Easy to learn, easy to setup the env,

#5
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Yea, i followed the tutorial on w3schools and thus far it's incredibly easy.

#6
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts

ManZzup said:

probably choose php bcuz its soo easy to learn compared to java
yet the capabilites of java cannot be achieved by php

The statement that Java is harder to learn than PHP is nonsense. I don't know awhole lot about how JSP handles tasks in a web environment like reading POST/GET data but it can't be much more complicated than PHP. Database access is just as simple in Java as in PHP without any lost functionality. Other things that PHP can do like networking, creating graphics, processing HTML forms can all be done with Java. So you don't really lose anything by using Java instead of PHP. PHP is more common than Java and probably lets you do things with less code but both languages have almost the same capabilities.

All really comes down to personal choice and learning how to create valid HTML and JavaScript code with whichever language you choose. There are some differences in the object model but both languages are similar.

#7
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Eventually i'll learn both anyway :D