Re: problem loading php_gd2.dll php5/apache2.0+



Pete Marsh wrote:
Wondering if anyone can recomend some sample code for dynamically
loading the GD module.

I have tried setting the extension dir in php.ini, and loading the GD
module from there when apache is started, but it won't load.

There is also the option of dynamically loading the module at run time
of the script.

LD() i believe is the call.

Anyone able to recommend a workaround here?

Or provide a hint with a sample?

Here's the closest usage of DL() i have found but not quite what I
need,


<?php
$gd_is_shared = "shared-library";

if (function_exists('ImageCreateFromPNG') && !@dl('gd.so')) {
$gd_is_shared = "embedded";
}

print $gd_is_shared;
?>

I'm just hoping to determine what the error message is as to why it
won't load under windows.


If it won't load at Apache startup, there's a problem. And I would expect this problem would keep it from loading dynamically, also.

Did you check your Apache error log? Perhaps even your Windows event log might have something.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: problem loading php_gd2.dll php5/apache2.0+
    ... module from there when apache is started, but it won't load. ... If it won't load at Apache startup, ... expect this problem would keep it from loading dynamically, ... Perhaps even your Windows event ...
    (comp.lang.php)
  • Re: problem loading php_gd2.dll php5/apache2.0+
    ... I have tried setting the extension dir in php.ini, and loading the GD ... module from there when apache is started, but it won't load. ... If it won't load at Apache startup, ... I've included the correct syntax bellow for loading the php5 module, ...
    (comp.lang.php)
  • Re: PostgreSQL drivers not working?
    ... Apache loads sql module, then loads php module that loads the same sql module? ... Apache loading shared libraries to make them available ... Then it loading MySQL extension, that extension looks for libMySQL.dll and see it ...
    (comp.lang.php)
  • Re: PostgreSQL drivers not working?
    ... Apache loads sql module, then loads php module that loads the same sql module? ... Apache loading shared libraries to make them available ... Then it loading MySQL extension, that extension looks for libMySQL.dll and see it ...
    (comp.lang.php)
  • Re: problem loading php_gd2.dll php5/apache2.0+
    ... I have tried setting the extension dir in php.ini, and loading the GD ... module from there when apache is started, but it won't load. ... If it won't load at Apache startup, ...
    (comp.lang.php)