how to combine php and C ? or use php in C or the other way around?

Discussion in 'Programming' started by w47w47, Sep 22, 2010.

  1. #1
    hoq to combine php and C ? or use php in C or the other way around?

    also... the owner of torrentz.com told me that he somehow combines php and C to run the scripts faster... but he doesn't have enought time to explain to me how he does it.

    does anyone here know how to do this?

    it would be nice if someone could show me an example for echo 'example'; in C combined with PHP.
     
    w47w47, Sep 22, 2010 IP
  2. jocurileus

    jocurileus Peon

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    PHP is a scripting language powered by C++ or C(donno which one).
    C/C++ programs need to be compiled to work while PHP is a scripting language (just like HTML) and need to be interpreted to work.
    But you can use an apache module to design your pages in cpp.
     
    jocurileus, Sep 22, 2010 IP
  3. w47w47

    w47w47 Peon

    Messages:
    255
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    tnx that helped a lot. :)
     
    w47w47, Sep 24, 2010 IP