Announcement

Collapse
No announcement yet.

Php 5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Php 5

    With PHP 5, Zend has attempted to move PHP from a run-of-the-mill scripting language to an object oriented web application programming language in the same league as JSP/ASP (albeit not strongly typed). I've been rather dubious for quite some time about PHP's ability to scale to large web applications, and PHP 5 has certainly addressed the majority of my concerns through its new object model. Proper MVC programming is now possible, and errors can be handled elegantly through exceptions. Could this spell the end for JSP, now runner up to ASP(.NET) and PHP?
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B0
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B1
    [ redacted ]

  • #2
    Originally posted by bascule
    Could this spell the end for JSP, now runner up to ASP(.NET) and PHP?
    Not unless PHP5 integrates seemlessly with a J2EE architecture.

    Comment


    • #3
      PHP 4 works fine for larger sites. Just ask Yahoo.com, they've hired most of the PHP team. You don't need OOP to scale!

      Comment


      • #4
        Originally posted by big chopper
        You don't need OOP to scale!
        No one said that OOP is necessary, JSP is just the web portion of a much larger architecture. If PHP can integrate into that architecture, then it will supplant JSP.

        Comment


        • #5
          Originally posted by big chopper
          PHP 4 works fine for larger sites. Just ask Yahoo.com, they've hired most of the PHP team. You don't need OOP to scale!
          By "scale" I mean code remains readable, comprehensible, and extensible even in large projects. When your codebase is ballooning beyond 10 klocs, OOP helps considerably to ensure your project remains managable.

          PHP allows for true web application development in the MVC-esque style pioneered by the Apache foundation (i.e. using Struts for the application framework and Velocity for page generation) No longer need your PHP code be a gigantic mishmash of HTML generation, database access, and input validation.

          Performance wise, PHP with Zend goodness has been kicking JSP's ass for quite some time... but then again JSP is ridiculously overcomplicated.
          45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B0
          45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B1
          [ redacted ]

          Comment


          • #6
            Originally posted by bascule
            By "scale" I mean code remains readable, comprehensible, and extensible even in large projects. When your codebase is ballooning beyond 10 klocs, OOP helps considerably to ensure your project remains managable.

            PHP allows for true web application development in the MVC-esque style pioneered by the Apache foundation (i.e. using Struts for the application framework and Velocity for page generation) No longer need your PHP code be a gigantic mishmash of HTML generation, database access, and input validation.

            Performance wise, PHP with Zend goodness has been kicking JSP's ass for quite some time... but then again JSP is ridiculously overcomplicated.
            I agree completely, but my point is that organizations that use a J2EE architecture for the entire enterprise will stick to JSP for compatibility with other Java components from both a technology and organizational viewpoint. I recently did a quick recon of Java and .NET bridging and it seems more trouble that its worth even though there are off-the-shelf products that are supposed to do this transparently. I suspect that PHP to Java bridging is not trivial.

            I would be nice if PHP could hook into servlets Struts style, since PHP programmers are a shitload cheaper than Java/JSP developers.

            Comment


            • #7
              Originally posted by murakami
              I suspect that PHP to Java bridging is not trivial.

              I would be nice if PHP could hook into servlets Struts style, since PHP programmers are a shitload cheaper than Java/JSP developers.
              You should really check out http://php.net/java/
              45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B0
              45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B1
              [ redacted ]

              Comment


              • #8
                Originally posted by bascule
                You should really check out http://php.net/java/
                Thanks, sigh ...

                smc+phpman at dogphilosophy dot net
                06-May-2004 05:29
                It appears Java integration has disappeared as of PHP5. Googling around I keep seeing how the Zend 2 engine should support having a better, faster, more stable version of the java integration, but it doesn't seem to be anything that's being worked on.

                If you're using, or want to try out, Java integration, best stick with PHP4 for a while...

                Comment


                • #9
                  Originally posted by murakami
                  Thanks, sigh ...
                  It's certainly working now. Best not to listen to two month old information about a beta version now that the stable one is out.
                  45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B0
                  45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B1
                  [ redacted ]

                  Comment


                  • #10
                    Originally posted by bascule
                    It's certainly working now. Best not to listen to two month old information about a beta version now that the stable one is out.
                    Is there a working example out there? The link you posted doesn't exactly scream production ready:

                    Warning

                    This extension is EXPERIMENTAL. The behaviour of this extension -- including the names of its functions and anything else documented about this extension -- may change without notice in a future release of PHP. Use this extension at your own risk.

                    Comment

                    Working...
                    X