I currently develop Java servlets and want to learn more JSP and/or PHP. I was starting to dig in to JSP, but it looks like PHP can do about the same thing as JSP. Which one should I use? Obviously the answers here will be biased, but can someone give me an honest answer as to why would I use one over the other? Thanks...

    My honest answer would be "I can't say..."

    I will say that I found PHP easy to learn and use; Java a tad trickier, but you know Java already. I'm not a programmer by education, and only work in code part time in my computer business....

    PHP5 is supposed to allow better usage of OOP techniques, but I don't know if it's working well or not. That's where you might find JSP to be superior. You might find out more over at php.net, of course.

    That said, my wife uses a JSP web app for her job in the insurance industry that I have always had this gut feeling about --- it'd be quicker in PHP.

    My guts are often wrong, tho'.... 😉

    Honest, yes; answer, well, you decide....

    At least your post gets a reply now.... 🙂 You might ask in the Echo Lounge ... some of the folks in there are bound to have an opinion...as long as they don't think you're trolling flamebaits....

      Originally posted by dalecosp
      You might ask in the Echo Lounge ... some of the folks in there are bound to have an opinion...as long as they don't think you're trolling flamebaits....

      already been done...

        as many here are fond of saying, use the best tool for the job.

        if your app needs to utilize some features of jsp not available in php, then use jsp. if jsp will work better with your java servlets, then use it. If you don't need the features that make jsp different from php, then there's no reason not to do it in php.

        might be a good idea for you to learn php anyway, just in case you decide to use it on something else somewhere down the road.

        • keith

          Originally posted by dalecosp


          ... At least your post gets a reply now.... 🙂 You might ask in the Echo Lounge ... some of the folks in there are bound to have an opinion...as long as they don't think you're trolling flamebaits....

          I don't post to forums often so I'm not familiar with the etiquette... if there is such a thing. What is "trolling flamebaits"? Does it mean I'm trying to start a fight by getting the PHP and JSP extremists to duke it out? If so, that isn't my intent. I just don't know anything about PHP and thought someone might be able to give me, or point me to, the pros and cons of each. Thanks...

            what is 'trolling flamebaits'

            You understood fairly well... 😉 I don't think anyone thinks that was your intent; but I thought I'd mention it to make sure ... FWIW, here is your guide to this site's "netiquette" guide, if BuzzLY'll forgive me for calling it that 😃

            At least itt looks as if we got a few people's thoughts on the issue. Piersk's pointer to the other thread should give you an idea of a few other opinions.

            You're right in supposing that you're going to get a somewhat slanted response at PHPBuilder; but I think you'll find some sensible answers as well...good luck whatever language you choose. Like somebody said, maybe learn both!!

              Write a Reply...