This is the mail archive of the
cygwin
mailing list for the Cygwin project.
PHP 7.1.16 (cli) (built: Apr 10 2018 18:09:30) ( NTS )
- From: "Larry Baker via cygwin" <cygwin at cygwin dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 17 Jun 2018 01:08:45 +0000 (UTC)
- Subject: PHP 7.1.16 (cli) (built: Apr 10 2018 18:09:30) ( NTS )
- References: <1672540905.728828.1529197725579.ref@mail.yahoo.com>
- Reply-to: Larry Baker <lbakersd at yahoo dot com>
- Reply-to: Larry Baker <lbakersd at yahoo dot com>
Hello Cygwin,
I have been battling this issue for many weeks now and hoping to get some direction on what to try next.
I have installed php, everything seems to be working except: /usr/lib/php/20160303/php_com_dotnet.dll.
Cygwin PHP does not come with php_com_dotnet.dll so I downloaded from Microsoft. I'm trying to pull data from Visual Fox Pro 8.0 files.
My php.ini file looks like this:
[COM]
[PHP_COM_DOTNET]
extension=php_com_dotnet.dll
But when I execute my code, I get this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/php_com_dotnet.dll' - No such file or directory in Unknown on line 0
PHP Fatal error: Uncaught Error: Class 'COM' not found in /cygdrive/f/php/postcard.php:13
Stack trace:
#0 {main}
thrown in /cygdrive/f/php/postcard.php on line 13
I have searched forever and can't find a solution.
Why would PHP installation have this dll included for this version of PHP?
<?php
$conn = new COM("ADODB.Connection");
$conn->Open("Provider=VFPOLEDB.1;Data Source=/cygdrive/f/php;Collating Sequence=Machine");
// open in read-only mode
$db = dbase_open('postcard.dbf', 0);
// do some stuff
?>
Any help would be greatly appreciated!!
Regards,
Larry
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple