Calling PHP From C

前端 未结 3 833
夕颜
夕颜 2021-01-01 07:07

I am trying to write an application that will use PHP as a scripting language. The application is a CGI handler, and I want to be able to call PHP pages from it.

I

3条回答
  •  庸人自扰
    2021-01-01 07:50

    I would check out how they've implemented the php command line binary. It seems the main function is in php_cli.c

    And it calls php_execute_scrip and a bunch of other functions which looks promising.

提交回复
热议问题