I try to add lp_solve extension to php and I did everything that they told me to do. So I installed the driver where they told me and I added the extension also but it doesn't work. So now in my php.ini file I have this:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "c:/wamp/bin/php/php5.3.0/ext/"
I put the driver php_phplpsolve55.dll in the "ext" directory and I added here:
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll
;extension=php_phplpsolve55.dll
I restarted wamp server but it still doesn't work
Any idea what should I do?
thanks
lp_solve
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: lp_solve
Uhhh... remove the ; in front of extension=php_phplpsolve55.dll and restart.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: lp_solve
I did this and I think I have found the problem but I cannot solve it exactly. The instruction says like this.
Fatal error: Call to undefined function lpsolve() in Command line code on line 1
Note that the PHP Warning is not always shown. The Fatal error is. This was specifically noted in the web environment.
Then PHP can find the lpsolve driver program, but the driver program cannot find the lpsolve library that contains the lpsolve implementation. This library is called lpsolve55.dll under Windows and liblpsolve55.so under Unix/Linux.
Under Windows, the lpsolve55.dll file must be in a directory that in the PATH environment variable. This path can be shown via the following command in a command prompt: PATH
It is common to place this in the WINDOWS\system32 folder.
I do not know what exactly to do
Thanks
Fatal error: Call to undefined function lpsolve() in Command line code on line 1
Note that the PHP Warning is not always shown. The Fatal error is. This was specifically noted in the web environment.
Then PHP can find the lpsolve driver program, but the driver program cannot find the lpsolve library that contains the lpsolve implementation. This library is called lpsolve55.dll under Windows and liblpsolve55.so under Unix/Linux.
Under Windows, the lpsolve55.dll file must be in a directory that in the PATH environment variable. This path can be shown via the following command in a command prompt: PATH
It is common to place this in the WINDOWS\system32 folder.
I do not know what exactly to do
Thanks
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: lp_solve
Place it in the \WINDOWS\system32 directory.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: lp_solve
Is the same
not working
not working