• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1328
  • Last Modified:

driver does not support this function

$db = new PDO("odbc:Driver={SQL Native Client};Server=$ip;Database=$database;dbname=$dbname",$user,$pass,array(PDO::ATTR_TIMEOUT => 400000));



common.php(131)      PDO::__construct() [<a href='pdo.--construct'>pdo.--construct</a>]: SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes      E_WARNING
0
rgb192
Asked:
rgb192
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
Here's the PDO-ODBC page http://www.php.net/manual/en/ref.pdo-odbc.php , and here's the PDO functions http://www.php.net/manual/en/book.pdo.php .
0
 
hmarcbowerCommented:
Looks like it's a PHP bug that is still around as last as 5.2.11 (according to the comments on this page).

http://bugs.php.net/bug.php?id=39929
0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now