FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » [Windows] php-cgi.exe can't find extension
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
[Windows] php-cgi.exe can't find extension [message #179749] Mon, 03 December 2012 08:49 Go to next message
Gilles Ganault is currently offline  Gilles Ganault
Messages: 27
Registered: September 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hello

I have the following minimalist PHP 5.4.8 setup for Windows:

php-cgi.exe
php.ini
php5.dll
php_gd2.dll
dummy.php

Here's the two lines I edited in php.ini:

//extension_dir = ".\"
extension_dir = "./"
....
extension=php_gd2.dll

Still, when running "php-cgi.exe dummy.php" in a DOS box, PHP can't
locate the php_gd2.dll extension:
=====================
C:\Projects\Php\dummy>php-cgi.exe dummy.php
PHP Warning: PHP Startup: Unable to load dynamic library
'./php_gd2.dll' - The specified module could not be found.
in Unknown on line 0
=====================

Do I need to edit php.ini further, or am I missing some binaries?

Thank you.
Re: [Windows] php-cgi.exe can't find extension [message #179751 is a reply to message #179749] Mon, 03 December 2012 11:03 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
On 12/3/2012 8:49 AM, Gilles wrote:
> Hello
>
> I have the following minimalist PHP 5.4.8 setup for Windows:
>
> php-cgi.exe
> php.ini
> php5.dll
> php_gd2.dll
> dummy.php
>
> Here's the two lines I edited in php.ini:
>
> //extension_dir = ".\"
> extension_dir = "./"
> ...
> extension=php_gd2.dll
>
> Still, when running "php-cgi.exe dummy.php" in a DOS box, PHP can't
> locate the php_gd2.dll extension:
> =====================
> C:\Projects\Php\dummy>php-cgi.exe dummy.php
> PHP Warning: PHP Startup: Unable to load dynamic library
> './php_gd2.dll' - The specified module could not be found.
> in Unknown on line 0
> =====================
>
> Do I need to edit php.ini further, or am I missing some binaries?
>
> Thank you.
>

Are you sure you're changing the right php.ini file? What does
phpinfo() show you (both for the configuration file being used and the
loaded extensions)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: [Windows] php-cgi.exe can't find extension [message #179755 is a reply to message #179751] Mon, 03 December 2012 12:30 Go to previous message
Gilles Ganault is currently offline  Gilles Ganault
Messages: 27
Registered: September 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
On Mon, 03 Dec 2012 11:03:23 -0500, Jerry Stuckle
<jstucklex(at)attglobal(dot)net> wrote:
> Are you sure you're changing the right php.ini file? What does
> phpinfo() show you (both for the configuration file being used and the
> loaded extensions)?

The problem disappeared after using the thread-safe version of release
5.4.9 ("VC9 x86 Thread Safe (2012-Nov-21 21:22:38)")
http://windows.php.net/download/#php-5.4

Thank you.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: file being saved causes fatal error.
Next Topic: must I close mysql_connect?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Dec 16 17:44:55 EST 2017

Total time taken to generate the page: 0.00584 seconds