C++ faster than PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • More Booze
    Confirmed User
    • Mar 2004
    • 5116

    #1

    C++ faster than PHP?

    Some people say that a script coded in C++ is way faster than PHP. And some say its not.

    Whats your opinions on this?
  • Odin88
    Confirmed User
    • Jul 2003
    • 3267

    #2
    it is.

    Comment

    • Naughty
      Confirmed User
      • Jul 2001
      • 6487

      #3
      Originally posted by Odin88
      it is.
      seks.ai for sale - ping me

      Comment

      • Babaganoosh
        ♥♥♥ Likes Hugs ♥♥♥
        • Nov 2001
        • 15841

        #4
        It's faster at most things. Generally any compiled language is going to be faster.
        I like pie.

        Comment

        • rowan
          Too lazy to set a custom title
          • Mar 2002
          • 17393

          #5
          It's not an easy question to answer, because they are languages... speed/delays depend completely on how you set up your server. eg, a server with PHP statically linked as an Apache module (ie: it's a part of Apache) may actually be comparable to, or faster than a server that has to load up an executable from cgi-bin each time.

          Comment

          • Basic_man
            Programming King Pin
            • Oct 2003
            • 27360

            #6
            It is.. that's why TTT is now TTT C :D
            UUGallery Builder - automated photo/video gallery plugin for Wordpress!
            Stop looking! Checkout Naked Hosting, online since 1999 !

            Comment

            • james_clickmemedia
              Confirmed User
              • Apr 2003
              • 2204

              #7
              In general C++ is faster than php...
              $ CLICKMEMEDIA.COM $ CONVERTING ETHNIC TRAFFIC SINCE 1998 ~ $30+PPS
              BLACK-X.COM - NEW BLACK EX-GF SITE
              CLICKMEMEDIA.COM ~ ICQ - 8788771

              Comment

              • frish
                Confirmed User
                • Aug 2004
                • 335

                #8
                C++ is faster than PHP !
                SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

                Comment

                • cezam
                  Confirmed User
                  • Jun 2003
                  • 1363

                  #9
                  C is compiled, PHP is interpreted. Compiled languages are usually faster.

                  You can improve the speed of your PHP scripts by using Zend Encoder or Turck MM Cache.

                  Comment

                  • garfield81
                    Confirmed User
                    • Feb 2004
                    • 212

                    #10
                    Originally posted by cezam
                    C is compiled, PHP is interpreted. Compiled languages are usually faster.

                    You can improve the speed of your PHP scripts by using Zend Encoder or Turck MM Cache.
                    ditto
                    SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

                    Comment

                    • TheSaint
                      Confirmed User
                      • Jun 2003
                      • 991

                      #11
                      C++ is way faster for standalone programs of course being compiled.

                      But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

                      So the answer is "maybe". Depends on what you are doing.
                      I have no signature

                      Comment

                      • coolfuck
                        Confirmed User
                        • Jun 2004
                        • 2440

                        #12
                        it is faster
                        WANT TO PLACE YOUR TEXT/BANNER HERE?
                        MSG ME:ICQ Number :43-420-088

                        Comment

                        • pussyluver
                          Clueless OleMan
                          • Mar 2003
                          • 11009

                          #13
                          So if you did everything right. C++ is faster.

                          There is always an exception somewhere to everything.

                          How about this. PHP is faster to code.

                          Comment

                          • xclusive
                            Too lazy to set a custom title
                            • Apr 2004
                            • 35218

                            #14
                            it's faster but any code is only as good as the coder...

                            I support MediumPimpin.com / Shemp's Outlawtgp.com /


                            Comment

                            • Scherfi
                              Confirmed User
                              • Jun 2003
                              • 868

                              #15
                              Originally posted by TheSaint
                              C++ is way faster for standalone programs of course being compiled.

                              But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

                              So the answer is "maybe". Depends on what you are doing.
                              agreed.
                              http://www.fastthumber.com

                              Comment

                              • More Booze
                                Confirmed User
                                • Mar 2004
                                • 5116

                                #16
                                Originally posted by TheSaint
                                C++ is way faster for standalone programs of course being compiled.

                                But C++ running in cgi-bin can be slower than php, at least out of the box the old fashioned way.

                                So the answer is "maybe". Depends on what you are doing.
                                Thats what some programmers in another forum also said.

                                Comment

                                • lb_vee
                                  Confirmed User
                                  • May 2004
                                  • 886

                                  #17
                                  I read an article a couple of months back comparing C to Perl to PHP. There was something in there about C for loops being 50% faster then Perl and PHP.

                                  Comment

                                  Working...