problem loading php_gd2.dll php5/apache2.0+
- From: "Pete Marsh" <mee@xxxxxxxxx>
- Date: 22 Mar 2007 03:06:26 -0700
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.
.
- Follow-Ups:
- Re: problem loading php_gd2.dll php5/apache2.0+
- From: Jerry Stuckle
- Re: problem loading php_gd2.dll php5/apache2.0+
- Prev by Date: Re: how to discover PHP interpreter name in a script
- Next by Date: Access to a POP3 mailbox
- Previous by thread: Coding the "tag a photo" feature from facebook
- Next by thread: Re: problem loading php_gd2.dll php5/apache2.0+
- Index(es):
Relevant Pages
|