Uncaught Error: Call to undefined function odbc_connect() How to resolve? - php

I am running MAMP and attempting to connect to ibm db2, however running into issues. It seems db_connect and odbc_connect are unavailable. How do I resolve? PHP version 7.2.1.
Uncaught Error: Call to undefined function odbc_connect()
I appreciate any guidance. thanks in advance for your help.

Related

undefined function dbase_open() .DBF

Error "Uncaught Error: Call to undefined function dbase_open();"
I'm installed the dbase https://pecl.php.net/package/dbase and extension=php_dbase.dll in php.ini
Fatal error alert
basic information:
1.XAMPP v3.3.0
2.php 7.3
3.windows 10
4.PECL 7.0.1
Thanks for your attention. I’m looking forward to your reply.

PHP: Fatal error: Call to undefined function openssl_pkcs12_read()

I'm using PHP to read encryted file using opensll.
when doing
openssl_pkcs12_read($storedfile, $certificateinfo, $passwd)
in my script, error came out is :
Fatal error: Call to undefined function openssl_pkcs12_read()
I'm trying to install openssl extension for my Suse Linux Enterprise Server 11.
Can anybody help me how to install openssl extension in SLES. or how to solve this problem.
thanks

Fatal error: Call to undefined function _setlocale() - phpMyAdmin

When opening phpMyAdmin at http://localhost/phpmyadmin/ address the following error message appears:
Fatal error: Call to undefined function _setlocale() in
/var/www/phpmyadmin/libraries/select_lang.lib.php on line 488
Does anyone know what can it be?
I use Linux Mint with PHP Version 5.6.29

How to connect to MS SQL Server 2016 from PHP 7

I'm attempting to insert rows in table in a database hosted in MS SQL Server 2016 installed in my local computer.
Here is my snippet $dbc = mssql_connect('MwangiCJ-PC/mwangi','sqluser','xxxx','mydb');
I have tried out the answer from
mssql_connect() with PHP5 and MSSQL2012 Express but I still get the error Fatal error: Uncaught Error: Call to undefined function mssql_connect()
When i run a simple phpinfo() I can see that I already have both sqlsrv and pdo_sqlsrv available.
Am I missing anything else? Please help. Thank you.
From the PHP docs:
Warning
This function was REMOVED in PHP 7.0.0.
Alternatives to this function include:
PDO::__construct()
sqlsrv_connect()
odbc_connect()

Fatal error: Call to undefined function oci_connect() in C:\xampp81\htdocs\aaainc\db.php on line 71

i have a problem with function oci_connect. now, i used xampp version 5.6.14-4, i've tried to uncomment this code like the suggestions in other posts on stack overflow
extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
i already restart the xampp, but still have the same error..
Fatal error: Call to undefined function oci_connect() in
C:\xampp81\htdocs\aaa\inc\db.php on line 71
is there any step that i missed? can you help me?
thank you so much :D
you can also see this answer from this question
here is tutorial of installing oci8 drivers for PHP
my answer for same question please review this

Categories