How can c ++ call PHP functions? for example, how can c ++ call PHP's time () function c ++ get the current time and write dozens of lines of code to crash ..
Reply to discussion (solution)
C ++ cannot call php functions,
In turn, you can compile the c ++ program into a dll and mount it to php for php to call.
C ++ cannot call php functions,
In turn, you can compile the c ++ program into a dll and mount it to php for php to call.
Why can't php be written in c?
Reply by referencing the potency on the first floor:
C ++ cannot call php functions,
In turn, you can compile the c ++ program into a dll and mount it to php for php to call.
Why can't php be written in c?
--------------------------------------------------------
This process is irreversible. C ++ is a compilation language. Compiled into machine code. Php is a dynamic language. Machine code cannot be compiled.
I cannot compile it into a machine code language. how can I write it in a machine code language? Languages that cannot be compiled into machine code are run through virtual machines.
Reply by referencing the potency on the first floor:
C ++ cannot call php functions,
In turn, you can compile the c ++ program into a dll and mount it to php for php to call.
Why can't php be written in c?
--------------------------------------------------------
This process is irreversible. C ++ is a compilation language. Compiled into machine code. Php is a dynamic language. Machine code cannot be compiled.
I cannot compile it into a machine code language. how can I write it in a machine code language? Languages that cannot be compiled into machine code are run through virtual machines.
Haha understand
It seems that there is no such saying. if you want to call it, you may wish to study the dll files in php, which is a little difficult.
Frequently-used functions can be used to write a package.