The DL function does not use the
Header ("Content-type:image/png");
DL ("Php_gd2.dll");
$im = @imagecreate (100, 50)
Or Die ("Cannot Initialize new GD image Stream");
$background _color = imagecolorallocate ($im, 255, 255, 255);
$text _color = imagecolorallocate ($im, 233, 14, 91);
Imagestring ($im, 1, 5, 5, "A simple Text String", $text _color);
Imagepng ($im);
Imagedestroy ($im);
?>
Examples do not doubt, the manual copied, closed GD2 extension, I added a DL ("Php_gd2.dll"); /ext or all of the paths, it doesn't work, is puzzling?????
------Solution--------------------
First do not know the landlord with the server, if it is Linux, you can not use the DLL, but should use so
Second, the DL function does not support multi-threaded Web server, so Apache with DL must be configured as Prefork working mode
It is not recommended to use the DL function at the end, or to configure the extension directly.
------Solution--------------------
The following examples are available in the manual:
PHP Code
------Solution--------------------
Write it to the php.ini.
5.3 Does not support the DL function!
Win is a. dll
Linux is. So