PHP vs JAVA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DJ Dev

    PHP vs JAVA

    Hi All,

    I have to build a web application for my project. This web application
    will be basically calling some functions written in C/C++.
    Basically, the process involves getting user input file, passing the
    file information to the C/C++ function, Getting the result from C/C++
    function etc.
    Ultimate aim will be to create a web service using WSDL, XML etc.

    It's actually more complex than it sounds.
    My question is that which language should I choose - PHP or Java(JSP &
    Servlets).
    I have a bit of learning curve for Java stuff though.
    Can anybody tell me which is the right way for me to go?
    Thanks!
  • Joe

    #2
    Re: PHP vs JAVA

    In article <1169423e.03090 31559.27de85c@p osting.google.c om>,
    ricky.arora@icn .siemens.com says...
    [color=blue]
    > It's actually more complex than it sounds.
    > My question is that which language should I choose - PHP or Java(JSP &
    > Servlets).
    > I have a bit of learning curve for Java stuff though.
    > Can anybody tell me which is the right way for me to go?
    > Thanks!
    >[/color]


    From what it sounds like, if PHP has less of a learning curve for you,
    I'd go with PHP.






    --
    "It is impossible to be unjust or unfair to the rich and powerful"
    -- Harry Britt

    Comment

    • Erwin Moller

      #3
      Re: PHP vs JAVA

      DJ Dev wrote:
      [color=blue]
      > Hi All,
      >
      > I have to build a web application for my project. This web application
      > will be basically calling some functions written in C/C++.
      > Basically, the process involves getting user input file, passing the
      > file information to the C/C++ function, Getting the result from C/C++
      > function etc.
      > Ultimate aim will be to create a web service using WSDL, XML etc.
      >
      > It's actually more complex than it sounds.
      > My question is that which language should I choose - PHP or Java(JSP &
      > Servlets).
      > I have a bit of learning curve for Java stuff though.
      > Can anybody tell me which is the right way for me to go?
      > Thanks![/color]

      Hi DJ,

      I only code Java and PHP. (and some ASP, but I don't want to talk about
      that)
      My general advise would be: If you want a simple quick start, use PHP, no
      question about it.

      PHP is intiutive and give quick results, where Java needs a few months of
      works before you get right on the track and made the mistakes you should
      make before becoming a good Java-programmer.
      J2EE is a lot more complicated and harder to learn than PHP.
      BUT... If you expect your application to grow, and become really complex,
      Java will be a better choice.

      By the description you give I would say: PHP.
      PHP can handle your 'systemcalls' to C and can handle XML.

      And PHP is getting more mature every release (dooh), they now have libaries
      (PEAR) and such, making PHP a safe bet for the future too for you.

      But I must say: I like Java more. :-)
      Matter of taste, I guess.

      Hope this helps. :-/

      Regards,
      Erwin

      Comment

      • Bruce Lewis

        #4
        Re: PHP vs JAVA

        ricky.arora@icn .siemens.com (DJ Dev) writes:
        [color=blue]
        > Basically, the process involves getting user input file, passing the
        > file information to the C/C++ function, Getting the result from C/C++
        > function etc.[/color]

        Two points for PHP: File upload comes standard with PHP. With Java you
        need to go out and get a file upload servlet. For the C/C++ interface,
        I don't know how it works in PHP, but it has to be better than JNI.
        [color=blue]
        > Ultimate aim will be to create a web service using WSDL, XML etc.
        >
        > It's actually more complex than it sounds.[/color]

        Only danger, then, is whether the C/C++ functions are safe to call from
        multiple processes at the same time (or multiple threads in the case of
        Apache 2).

        If you've learned C, you should have no trouble with PHP. The things
        that make PHP hard for newbies are a subset of the things that make C
        hard for newbies.

        Comment

        • Nikolai Chuvakhin

          #5
          Re: PHP vs JAVA

          ricky.arora@icn .siemens.com (DJ Dev) wrote in message
          news:<1169423e. 0309031559.27de [email protected] gle.com>...[color=blue]
          >
          > I have to build a web application for my project. This web application
          > will be basically calling some functions written in C/C++.
          > Basically, the process involves getting user input file, passing the
          > file information to the C/C++ function, Getting the result from C/C++
          > function etc.
          > Ultimate aim will be to create a web service using WSDL, XML etc.
          >
          > It's actually more complex than it sounds.
          > My question is that which language should I choose - PHP or Java
          > (JSP & Servlets).[/color]

          Why can't you just write the whole thing in C/C++? All you need
          to figure out is how to get inputs via HTTP.

          Also, if your ultimate goal is to create Web services, why don't
          you take a look at readily available libraries for creating Web
          services? PHP has NuSOAP, other languages have to have similar
          things...

          Cheers,
          NC

          Comment

          Working...