PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a simple PHP script that gets an HTTP REQUEST and fetch it's content.
Now I want to do lot's of processing to this content, and I already have a C/C++ Library that does it, so I would rather avoid writing the same code in PHP.
Is there a way of using an external C library from PHP?
Lib file, written in C.
It processes the received request buffer and generated a reply http buffer according to the request parameters + some library internal data.
If memory serves, lib files must be compiled into an executable file such as a dll/so/exe. If you truly wish to not implement it in PHP (the most portable form) you will therefore need to build an extension around the lib (not so portable.)