Skip to content
Advertisement

Call to undefined function odbc_connect via command line (cmd) PHP5

I’m using PHP 5, Windows (IIS), and when i try access the file from command line, i get the following error (via browser, everything works great):

JavaScript

My current code is:

JavaScript

Also have this extension:

JavaScript

I read to uncomment (php.ini) line with code php_odbc.dll, but i don’t have these line and file.

Any tips to help?

Thank you!

Advertisement

Answer

I have the IIS and xampp installed and the problem is the environment variables.

I changed the path C:xamppphp to C:php and now, works like expected.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement