use php in python httpservers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • artasis@gmail.com

    use php in python httpservers

    Hi, that is my task:
    I need to create python webserver-like extension(dll) which will run
    php and python scripts as plugins.
    I have no problems with dll creating and run python scripts, but I
    cannot understand how to run php(CLI is not a solution).
    Is there a way to solve this problem? I've thought to implement php to
    HTTPServer-like python module, but as I see it's impossible. Solutions
    with creating intermediate C-based module is allowed, but better
    without them :).
    AFAIK, php5ts.dll is that what I must use but how integrate it to
    python webserver? that is a question
  • Jeff

    #2
    Re: use php in python httpservers

    ctypes?

    Comment

    • artasis@gmail.com

      #3
      Re: use php in python httpservers

      On May 5, 3:48 pm, Jeff <jeffo...@gmail .comwrote:
      ctypes?
      hm..may you explain it?

      Comment

      • Diez B. Roggisch

        #4
        Re: use php in python httpservers

        artasis@gmail.c om wrote:
        Hi, that is my task:
        I need to create python webserver-like extension(dll) which will run
        php and python scripts as plugins.
        I have no problems with dll creating and run python scripts, but I
        cannot understand how to run php(CLI is not a solution).
        Is there a way to solve this problem? I've thought to implement php to
        HTTPServer-like python module, but as I see it's impossible. Solutions
        with creating intermediate C-based module is allowed, but better
        without them :).
        AFAIK, php5ts.dll is that what I must use but how integrate it to
        python webserver? that is a question


        Might be of help.

        And maybe the roadsend PHP-compiler.

        Diez

        Comment

        • artasis@gmail.com

          #5
          Re: use php in python httpservers

          On May 6, 3:00 pm, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
          arta...@gmail.c om wrote:
          Hi, that is my task:
          I need to create python webserver-like extension(dll) which will run
          php and python scripts as plugins.
          I have no problems with dll creating and run python scripts, but I
          cannot understand how to run php(CLI is not a solution).
          Is there a way to solve this problem? I've thought to implement php to
          HTTPServer-like python module, but as I see it's impossible. Solutions
          with creating intermediate C-based module is allowed, but better
          without them :).
          AFAIK, php5ts.dll is that what I must use but how integrate it to
          python webserver? that is a question
          >
          http://www.amazon.com/Extending-Embe...s-Library/dp/0...
          >
          Might be of help.
          >
          And maybe the roadsend PHP-compiler.
          >
          Diez
          thanks! great book! this would help with Jeff recommendations to use
          ctypes

          Comment

          Working...