For some inexplicable questions about the gd library and jpgraph, please take a look.

Source: Internet
Author: User
Regarding an inexplicable problem about the gd library and jpgraph, let's take a look at php.5.3.6. php-gd supports compiling in the DSO format. I have a php program named 2.0.34compatible in the gd library and used jpgraph, one debian, one ubuntu11, the gd libraries of the two machines, and the php and gd extensions are both manually compiled and installed. Others are an inexplicable problem about the gd library and jpgraph, let's take a look.
Php.5.3.6, php-gd can be compiled into the DSO format, and 2.0.34 compatible for the gd Library

I have a php program that uses jpgraph, debian, ubuntu11, the gd libraries of the two machines, php, and gd extensions, both of which are manually compiled and installed. Others, such as libpng, libjpeg and libfreetype are both installed in the same version.

However, this program runs on debian. when the stroke method is executed on Ubuntu 11 to generate a file, garbled characters are output to the browser. apache error_log does not contain any error information.

The gd part in phpinfo is exactly the same (Ubuntu 11 uses the new version downloaded from the source, and some packages have the same effect)

------ Solution --------------------
Output stroke to the file and save it as an image file. Try
Different browsers may cause browser problems. Php header.
------ Solution --------------------
You must install the font file by yourself.

I don't know if it can be used to copy the window. you can try it.

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.