Home Backend Development PHP Tutorial php画图函数画不出图来,

php画图函数画不出图来,

Jun 13, 2016 pm 01:21 PM
black header quot

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注释掉。再测试是什么情况。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What does linux header mean? What does linux header mean? Jul 18, 2023 pm 03:34 PM

What does linux header mean?

How does SpringBoot pass parameters in the Header through Feign calls? How does SpringBoot pass parameters in the Header through Feign calls? May 16, 2023 pm 08:38 PM

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

What is the difference between html5 tag head and header? What is the difference between html5 tag head and header? Jan 17, 2022 am 11:10 AM

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 Deal | GoPro Hero 12 Black Amazon deal brings 5.3K action camera price down to lowest ever Jun 21, 2024 am 06:36 AM

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 to use PHP header() method to adjust web pages Mar 28, 2023 pm 01:54 PM

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

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决

How to jump in php header How to jump in php header Dec 02, 2022 am 09:14 AM

How to jump in php header

How Nginx distributes through the identity in the header How Nginx distributes through the identity in the header May 11, 2023 pm 04:01 PM

How Nginx distributes through the identity in the header

See all articles