Home > Backend Development > PHP Tutorial > c++如何调用PHP的函数

c++如何调用PHP的函数

WBOY
Release: 2016-06-13 11:57:03
Original
1260 people have browsed it

c++怎么调用PHP的函数
比方说c++怎么调用PHP的time()函数     c++获取当前时间 写死人啊 几十行代码 崩溃。。    
------解决方案--------------------
引用:
C++不可以调用php的函数,
反过来则可以:将c++程序编写成dll,挂到php下面让php调用。
 php也是用c写得怎么会不可以呢
--------------------------------------------------------
这个过程是不可逆的。 C++属于编译语言。编译成机器码了。而php是动态语言。不能编译为机器码。
不能编译为机器码的语言,咋能写在机器码语言中呢?不能编译为机器码的语言,是通过虚拟机运行的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template