Can someone help me with the GD library in windows? - php

I cannot get this to work on Wondows. There is a dll file bundled in the gdwin.zip file that I downloaded called "bgd.dll". I read that this file needs to go into the ext directory and then simply add / uncomment the library in the ini file. I've done that but I cannot get this working. Can someone please help? I'm on 5.2
This is the error message I'm getting. I have restarted the server.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_gd2.dll' - The specified module could not be found.\r\n in Unknown on line 0
I renamed the dll back to its original name and now I am getting this error after I restart the server:
PHP Startup: Invalid library (maybe not a PHP library) 'bgd.dll' in Unknown on line 0

i just downloaded the php 5.2.11 zip from php.net and it has the php_gd1.dll in the ext folder already .. so u should just uncomment the line from the php.ini and that should be it. u dont need to get the gd lib seperatly.

Related

PHP Settings Error when trying to install Composer on Windows 7 machine

I am receiving the following error when I download 'Composer-Setup.exe', double click the file and run the PHP Settings check.
Are there a couple of lines in the php.ini file that I need to fix? I am trying to run composer commands in my command prompt relating to an installation of Laravel on my Xampp server ('C:/Xampp/htdocs').
The PHP exe file you specified did not run correctly:
C:\Program Files (x86)\iis express\PHP\v7.0\php.exe
The php.ini used by your command-line PHP is: C:\Program Files (x86)\iis express\PHP\v7.0\php.ini
A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_sqlsrv_72_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v7.0\ext\php_mysql.dll' - The specified module could not be found.
in Unknown on line 0
I think the problem is from your php version, try upgrade your php version into 7++
just install the php_pdo_sqlsrv_81_ts_x64.dll and it will work for u i did the same thing

Change PHP working directory, PostgreSQL not working on Windows

I don't use the Microsoft dump-everything-folder because I like to keep my stuff organized. My PHP and corresponding php.ini file are located here...
C:\MEDIA\INTERNET\WAPP\PHP 5.6.2 x64\php.ini
PHP does not see PostgreSQL which I've verified via phpinfo. The Apache error log showed the following error...
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\php_pgsql.dll'
- The specified module could not be found.\r\n in Unknown on line 0
So my question is where is the setting to change the default PHP directory? This should get PostgreSQL to work with PHP.
You have to change the default php extension directory by editing the php.ini:
extension_dir="FULL_MODIFIED_EXTENSTION_PATH"
Something like:
extension_dir="C:\MEDIA\INTERNET\WAPP\PHP 5.6.2 x64\ext"
Source

php file not running on browser after configuring it with apache 2.2.22 and php 5.2.13

I want to call php file form android app to fetch the data from the server so configure the apache 2.2.22 with php 5.2.13 and then i run the index page it run correctly and when try to run the project page it say server not found and in the error log file of the apache it show the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_mssql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_oci.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext\\php_pdo_oci8.dll' - The specified module could not be found.\r\n in Unknown on line 0
can anyone tell whats the issue.
Thanks in advance.
Do you have that .dll installed? If not then PHP will throw an error because it cannot load the proper libraries to use things like mysql_connect, etc.
try downloading the .dll again and seeing if it solves the problem.
What does your php.ini look like?
Try uncommenting this line:
;extension=php_mysql.dll
Save the ini and then restart Apache.
Try to put the libmysql.dll in c:/windows/system32 and then restart apache...

PHP extensions not found

I have compiled version 5.4.14 of PHP on a linux system using the same configuration I had for a 5.4.13 version. I run the following PHP -i command and I get:
[root#localhost php-5.4.14]# php -i
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/fileinfo.so' - /usr/lib64/20100525/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/json.so' - /usr/lib64/20100525/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/phar.so' - /usr/lib64/20100525/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/zip.so' - /usr/lib64/20100525/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
Now I know that JSON is now part of the PHP core and there is no JSON.SO (I assume the same for the others). Is anyone aware of why this is a problem? I do not have any extension=XXXX.so lines in my php.ini file. I am compiling under Centos 6.4.
Got it -- A directory /etc/php.d was added. This contains a bunch of .ini files which are added to the processing of php.ini. The json.ini file, for example, simply says: extension=json.so
After spending too long looking for the answer, I happened to catch a line in the php -i output specifying the additional .ini directory. Hope this saves someone some time some day.

PHP Startup: Unable to load dynamic library

I am trying to use Firebird 2.5.2.26539 with:
Windows 8
Apache 2.2.22
PHP 5.4.10
When i enable the extensions of firebird in php:
- extension=php_interbase.dll
- extension=php_pdo_firebird.dll
I get these errors:
[26-Dec-2012 12:08:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_interbase.dll' - Impossible to locate the specified module.
in Unknown on line 0
[26-Dec-2012 12:08:13 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' - Impossible to locate the specified module.
in Unknown on line 0
if i make PHP -a in command line, the error message is different: cannot find fbclient.dll.
I have the flamerobin running and it opens the database. So i copy the fbclient.dll to the PHP root path.
Then the errors change to:
[26-Dec-2012 11:55:46 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_interbase.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
[26-Dec-2012 11:55:46 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' - %1 is not a valid Win32 application.
in Unknown on line 0
Can anyone help me on this one? I suspect that this version of Firebird still does not have the correct extensions made for the PHP.
Thank you.
I am repeating the comment (which some might miss) by Nenhum Pois é above, because it is the real solution to the problem:
The problem was the fbclient.dll from the FB 64 bits installation. I just got the fbclient.dll from 32bits, copy it into the PHP root and it solved the problem
Cli and Apache PHP run with two different configuration files. That will explain the lacking error message in CLI mode. The likelihood is the extensions for this application where not stored in the PHP extension folder. I'm not versed with the configurations under windows so you may need to google for the Windows PHP extension directory and ensure your extension file is there.
Judging by your error the path is "C:\Program files(x86)\PHP\ext\
Please ensure your extension files are there before attempting to load them.
If you run on Windows check if your extension is compiled with the same Visual Studio compiler version as your PHP interpreter.
From PHP download page https://windows.php.net/download
PHP 7.3 = VC15
PHP 7.1 = VC14
PHP 5.6 = VC11
Whereas the MongoDB extension for examples is compiled with VC11, see https://pecl.php.net/package/mongo/1.6.16/windows and check the DLL list filename for -vc11-

Categories