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.