简体   繁体   English

如何将c ++程序与HTML页面链接?

[英]how to link c++ program with HTML page?

i am working on php...!! 我正在研究php ... !! Is it possible to link HTML page to c++/c at back end. 是否可以在后端将HTML页面链接到c ++ / c。 means instead of php script i want to run c/c++ if Yes How?? 意味着代替php脚本我想运行c / c ++如果是,如何?

检查CGIFastCGI技术。

CGI is your best bet if the C++ program is an executable. 如果C ++程序是可执行文件,CGI是你最好的选择。 If you want to use a C++ library from PHP you will need to write an extension. 如果要使用PHP的C ++库,则需要编写扩展。 An example of this can be found at http://devzone.zend.com/article/4486 可以在http://devzone.zend.com/article/4486上找到此示例

你所追求的是CGI

I recommend the book Extending and Embedding PHP by Sara Goleman link 我推荐Sara Goleman 链接中的扩展和嵌入PHP一书

It is probably the best resource I have found on linking C++ libraries / routines to user space PHP functions. 它可能是我在将C ++库/例程链接到用户空间PHP函数时找到的最佳资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM