The DL function is not used, how to handle

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.