If you have any questions about imagecreatetruecolor, contact us.

Source: Internet
Author: User
Tags blank page apache log
If you have any questions about imagecreatetruecolor, contact us. The gd Library is enabled both locally and on the server.

Then run
$im = @imagecreatetruecolor(2032,5520);var_dump($im);exit;


Local direct return
Resource (24) of type (gd)

On the server, the program is directly interrupted, and no errors are reported. a blank page is displayed.

At the beginning, it was estimated that it was caused by the execution time of php. Therefore, the max_execution_time of the server was changed to 300, and the local time was changed to 60. The result was the same as before, no results were found for querying logs or asking du Niang.

Excuse me: why? How can this problem be solved?


Reply to discussion (solution)

It may be that gd is not loaded.
Or the memory is insufficient.

4 GB local memory and 8 GB memory on the server. the problem may not be good.

There should be no major problems.

Phpinfo (); check whether the gd Library is enabled and enable the error prompt function.

Check whether there is any error message in apache log.

Phpinfo (); check whether the gd Library is enabled and enable the error prompt function.



There is no error message related to this operation in apache log.
The GD library must be enabled, because the number (,) is less than this number, for example (), it can be created.

There is no error output because you have used the error blocker @ to remove it.
The memory may be insufficient.
Ini_set ('memory _ limit ', '256m ');
Add this sentence.

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.