Conversion to Phalager - no ODBC?
2 posts
• Page 1 of 1
Conversion to Phalager - no ODBC?
I have taken a VS 2013 Web Application from PHP Tools to Phalanger. Some reference issues were overcome. But now I get a "no driver" error from this:
$conn = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=$db_path;Uid=;Pwd=xxxx");
I have the PhpNetPDO referenced. What is missing?
ALSO PDO::FETCH_GROUP is not defined but was ok under PHPTools.
I used:
fetchAll(PDO::FETCH_GROUP|PDO::FETCH_ASSOC)
This is getting to be a frustrating conversion for something that was working before!
$conn = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=$db_path;Uid=;Pwd=xxxx");
I have the PhpNetPDO referenced. What is missing?
ALSO PDO::FETCH_GROUP is not defined but was ok under PHPTools.
I used:
fetchAll(PDO::FETCH_GROUP|PDO::FETCH_ASSOC)
This is getting to be a frustrating conversion for something that was working before!
- SystemAdmin_Bill
- Posts: 4
- Joined: September 5th, 2014, 9:52 pm
Re: Conversion to Phalager - no ODBC?
Phalanger does support PDO, but not all drivers or all DSN formats currently.
Please note Phalanger is not PHP.. it is a different implementation of PHP written from scratch.. it has the same syntax, the same set of basic functions, classes and constants. So something working in PHP has to be revised in order to be compiled and run under Phalanger.
PhpNetPDO is PDO support itself, in addition to that, there are other PhpNetPDO* assemblies for specific database support (mysql, mssql, sqli).
Please download the latest version from http://www.devsense.com/products/phalan ... ad/preview, there are several fixes related to references and IntelliSense.
Thank you,
Please note Phalanger is not PHP.. it is a different implementation of PHP written from scratch.. it has the same syntax, the same set of basic functions, classes and constants. So something working in PHP has to be revised in order to be compiled and run under Phalanger.
PhpNetPDO is PDO support itself, in addition to that, there are other PhpNetPDO* assemblies for specific database support (mysql, mssql, sqli).
Please download the latest version from http://www.devsense.com/products/phalan ... ad/preview, there are several fixes related to references and IntelliSense.
Thank you,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests