Currently, I am getting an error
fatal error: undefined function ldap_connect()
I am assuming this is because I do not have the library php_ldap.dll, but I am unsure how to even obtain it. Basically, I'm trying to get it so that ldap driver appears on the phpinfo page.
Please do not mark this question as duplicate: Fatal error: Call to undefined function: ldap_connect(). This solution works for Linux and Windows, but does not work on Mac OS.
Any input would be appreciated.
When you are on a Mac php_ldap.dll won't help you as that's a windows file.
If you are using MAMP you should have a look at the MAMP documentation to see how to enable other extensions. IIRC there is a possibility to enable extensions in the preferences somewhere but I might be wrong or that has changed since I looked the last time. If there is that possibility, you should be able to enable the LDAP extension there.
Related
So apparently I'm a lucky bastard and got problems with this function in my localhost ever since I know myself.
I can't change the connection to PDO due to the code simply isn't mine and have more than 100 files with this connection, so I have to keep them, and connect into my localhost with them, so I can edit and work on it while on my machine.
When I try to connect with mssql_connect() the following error is displayed: Fatal error: Call to undefined function mssql_connect()
Searching on all type of questions here, I found that mssql_connect() doesn't work anymore on 5.3 versions + of php, but there is some .dll that Windows itself provides to those who still want to work with this function.
The .dll files are:
php_sqlsrv_54_nts.dll and php_sqlsrv_54_ts.dll
I'm using 54 because my php version is 5.4.45
Even though, still not working, the .dlls are enabled in php.ini, but the message keeps showing.
Does anyone REALLY have a solution to this problem? I really need to keep using this functions...
Thanks!
I have PHP 5.4.30 installed and running well using the FastCGI module and IIS 8 (on Windows 8.1). I have MySQL installed and would like to manage it with phpMyAdmin, however, I get this error whenever I try to access the page:
Fatal error: Call to undefined function mb_detect_encoding() in C:\inetpub\wwwroot\phpmyadmin\libraries\php-gettext\gettext.inc on line 177
Many older threads I have seen suggest adding extensions to the php.ini, but in the later versions of php, the php.ini file becomes php.ini-production and php.ini-development. Whenever I try to modify either of these files or create a php.ini file, I get an error 500 when trying to visit other php pages. I have also seen many solutions related to Xampp / Apache, but none of them seem to work in IIS 8 (that I have found).
Thanks in advance for any suggestions!
You probably need the php_mbstring.dll file installed. You can find it on the PHP Windows Extensions page
I keep getting the following message when trying to connect to a ms sql database via PHP
Fatal error: Call to undefined function mssql_connect()
I need to do it using FREETDS, I have followed the instructions: http://docs.moodle.org/24/en/Installing_MSSQL_for_PHP
I am using WAMP with php 5.4 the extension is ticked in my extension list in wamp toolbar. One thing I wonder is whether it's something to do with freetds.conf under a standard wamp install where should this go? I have it sitting in the root of c and under bin/php/php5.4.16. The only info I have changed in it is the IP address of the server I want to connect to, is this correct?
I changed the default PHP version to an older one (5.3.28) but when I try to jump in to PHPMyadmin I get the error
*Fatal error: Call to undefined function mb_detect_encoding() in C:\xampp2\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177*
Browsing trough this forum I found that this means I need the mbstring library
I enabled it in php.ini like this:
extension=php_mbstring.dll
But I keep receiving the same error.
I checked the extensions directory
extension_dir="C:\xampp2\php5328\ext"
and its correct, and the extension file is there as well (php_mbstring.dll)
But when I load phpinfo() I cant find any mention of mbstring.
Any ideas?
Got it solved #.# I was clicking config in XAMP and I thought it would for some reason open automatically the old php file (even tho Xampp is already configured to use the new one)
So yeah X) I was modifying the wrong php.ini
Thanks!
As this is a new question I assume it's fine to create a new fresh question?
My previous question is here:
imageantialias call to undefined function error with GD installed
Markus helped me figure out the problem, I have since contacted the clients and set up a VPS for them, I have transferred the files and database and everything is running fine. Apart from the same error, only this time, I'm getting a different error;
Fatal error: Call to undefined function imagecreatetruecolor() in /home/public_html/admin/library/functions.php on line 232
I assume this is relating to the same thing and it required a php recompile? Could someone please give me some instructions on how to do a php recompile on Mac OS X, I tried the PHP docs but I can't seem to understand how it works.
Many Thanks!
Make sure you have the correct version of PHP and GD installed. From the PHP manual:
Depending on your PHP and GD versions
this function is defined or not. With
PHP 4.0.6 through 4.1.x this function
always exists if the GD module is
loaded, but calling it without GD2
being installed PHP will issue a fatal
error and exit. With PHP 4.2.x this
behaviour is different in issuing a
warning instead of an error. Other
versions only define this function, if
the correct GD version is installed.