Fatal error: Call to undefined function mssql_connect() PHP5.5 - php

I am currently migrating a Drupal site for local development. One of the custom modules is throwing an error:
Fatal error: Call to undefined function mssql_connect()
I installed the MS SQL PHP Driver and included it in php.ini
extension=php_sqlsrv_55_ts.dll
extension=php_pdo_sqlsrv_55_ts.dll
However, the error still persists. How can I fix it? the dll's above are for the right version of PHP (5.5.31)

Related

PHP Fatal error: Uncaught Error: Class 'Mongo' not found

I've been trying to install the MongoDB extension for PHP for a while now with no luck. I followed the standard steps:
Installed the driver via Pecl
Added it to my PHP.ini file (both CLI and Apache2)
Restarted Apache2
Yet, my code believes it does not exist:
$conn = new Mongo($_ENV["DB"]);
$db = $conn->test;
PHP Fatal error: Uncaught Error: Class 'Mongo' not found in /var/www/ag/API/index.php:22\nStack trace:\n#0 {main}\n thrown in /var/www/ag/API/index.php on line 22
Any ideas what I am doing wrong? I am using PHP 7.3 and Apache 2.4.38 on Debian
I saw a question like this for Windows, but it was of no help to me.

Call to undefined function mysqli_init() while running CodeIgniter application

I have old projects all running on PHP 7.1.1, all application are on CodeIgniter 3.1.11. I have installed new XAMPP which has PHP version 7.4.3. If I run my application on 7.4.3, I got this error:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function mysqli_init()
Filename: F:\xampp\htdocs\hospital\billing.hospital\system\database\drivers\mysqli\mysqli_driver.php
Line Number: 135
Even if I change PHP version 7.4 on live server, the same error comes but it is running without error on 7.3 PHP version. What needs to change in my CodeIgniter application, so that I can run on 7.4 PHP version too.

How to enable imap features in MacOs Catalina

I'm trying to use PHP imap features on MacOS Catalina, but i'm always getting this error when calling 'imap_open' :
Fatal error: Uncaught Error: Call to undefined function imap_open()
I know i need to enable the imap extension, and i did it on /etc/php.ini.default :
extension=imap
Restarted Apache but even so, i keep getting the same error. What i'm doing wrong ?
Thanks

pdo module is enabled but I have "PHP Fatal error: Class 'PDO' not found"!

I uploaded my laravel 5.3 on a shared hosting.
When I go to my site ,I have a blank page. in the root of
[29-Jan-2017 10:57:15 UTC] PHP Fatal error: Class 'PDO' not found in /home/rasooli/reka.ir/private/config/database.php on line 16
But the pdo and pdo_mysql extensions are selected on this hosting. What can i do with this error?
Are this extensions sufficient for laravel 5.3?
https://m24i.imgup.net/Screenshot4e76.png
i think you need to enable pdo in you php.ini
you can create it in your root :
extension=pdo.so
extension=pdo_mysql.so
the PDO was enabled in php.ini.
but problem caused by php version and by upgrading php, problem solved.

Fatal error: Call to undefined function ssh2_connect() And Openssl is also Enabled

My open ssl service available in php.info ,Still getting Fatal error: Call to undefined function ssh2_connect()
Before this i changed dll files in php folder - libssh2 AND in ext path php_ssh2.dll and php_ssh2.pdb
Please help
this also i had tried -
SSH2 in php, wamp,windows

Categories