problem loading php_gd2.dll php5/apache2.0+



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.

.



Relevant Pages

  • Re: Html download challenge
    ... >> Here is some sample code. ... You will see me loading from 2 urls. ... > Tomcat and got the following: ... > Evidently the Java classes you're using are setting these defaults ...
    (comp.lang.java.programmer)
  • 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)
  • RE: Redirect
    ... Can you provide some sample code that would ... demonstrate loading forms once and reusing them. ... make them singletons and only load them once. ...
    (microsoft.public.pocketpc.developer)
  • Common Music problem
    ... I cut and paste some sample code. ... No file or port class for ... Men on a lower level of understanding, when brought into contact with phenomena of a higher order, instead of making efforts to understand them, to raise themselves up to the point of view from which they must look at the subject, judge it from their lower standpoint, and the less they understand what they are talking about, the more confidently and unhesitatingly they pass judgment on it. ...
    (comp.lang.lisp)
  • Re: Parse HTML DOM document in console application
    ... "Charles Law" wrote in message ... thanks for your reply and the sample code. ... the loop: ... I comment out Application.DoEvents, readyState stays "loading". ...
    (microsoft.public.dotnet.languages.vb)