Call external library from PHP. What is faster: exec or extension?
- by robusta
Hi,
I need to make calls from webpage to external library written in C++ and display the result. Platform is Linux, Apache, PHP.
My current idea is to use PHP service which will call my library/program. I found that there are two possible ways to do this:
1) use PHP 'exec' function
2) write PHP extension
I am curious what works more effective?…