php画图函数画不出图来,
Jun 13, 2016 pm 01:21 PM
php画图函数画不出图来,求助啊!
$im = imagecreate(400,30);
$black = imagecolorallocate($im, 0,0,0);
$white = imagecolorallocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $black);
imagestring($im, 5, 4, 10, "Graph TEST!!", $white);
imagepng($im);
imageDestroy($im);
?>
扩展库已经打开了,服务器是IIs的为什么显示不出图片呢?
------解决方案--------------------
去掉header,看看浏览器会报出哪些的错误。
------解决方案--------------------
php.ini中打开错误提示 display_errors=On
error_reporting=E_ALL & ~E_NOTICE
重启iis
把header注释掉。再测试是什么情况。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How does SpringBoot pass parameters in the Header through Feign calls?

What is the difference between html5 tag head and header?

Deal | GoPro Hero 12 Black Amazon deal brings 5.3K action camera price down to lowest ever

How to use PHP header() method to adjust web pages

How Nginx distributes through the identity in the header
