Web lists-archives.com

[PHP] How to access to a Visual FoxPro database (.DBC file)

Hi, friends.


I’m trying to access a Visual FoxPro database (.DBC file) with a 64 bits version of PHP 5.6.25, using PhpStorm 8.0.2 in Windows 7 Ultimate x64 this way:


$dbc = new COM("ADODB.Connection") or die ("Connection create fail");
$dbc->Open("Provider=VFPOLEDB.1;Data Source=\\\\mynetworkpc\\vfpfolder\\vfpdb.dbc;Password=***;Collating Sequence=MACHINE");


But it triggers a com exception saying that can’t find a specified provider, What’s wrong here?


Thanks anyway, and please, answer to my e-mail account.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php