I want to install and run lp_solve through PHP for a project I am working on. I've already created the solver in C and will be then working on converting it to PHP (and maybe even try incorporating a MySQL table to list off the array, it seems like a clever idea at the moment....)
I followed the documentation here yet when I test the installation I get the following error:
Fatal error: Uncaught Error: Call to undefined function lpsolve() in file location
I am running WAMP 3.1.0 64 bit with the following software versions: Apache 2.4.27 - PHP 7.1.9 from a Windows 8 PC.
In case I missed or mis-understood any of the steps in the documentation, here is what I have done:
- Downloaded lpsolve55.dll from here and copied it into my System32 folder
- Identified the directory where the loadable extensions reside i.e. c:/wamp/bin/php/php7.1.9/ext/ from my php.ini folder
- Copied php_phplpsolve55.dll to the folder above
- Added extension=php_phplpsolve55.dll to my php.ini folder
- Re-started WAMP with all associated services
Yet the above fatal error keeps recurring. I have tried changing to an older PHP version 5.6.31 which is enabled on my WAMP server without much luck.
Any ideas as to why this is happening and how I can fix it?
Thanks