我是新來的PHP,我試圖簡單地打印一條消息,並創建一個矩形,但這是行不通的。我已經查看了wamp目錄中php.ini文件中的gd擴展名,並且未將其註釋掉。請幫助 - 爲什麼會不是工作:(php ImageCreate
<?php
print ("hello world");
$im = ImageCreate(200,200);
$white = ImageColorAllocate($im,0xFF,0xFF,0xFF);
$black = ImageColorAllocate($im,0x00,0x00,0x00);
ImageFilledRectangle($im,50,50,150,150,$black);
header('Content-Type: image/png');
ImagePNG($im);
?>
錯誤消息? '不起作用'不是錯誤... – DaveRandom 2012-08-08 11:03:59
沒有錯誤信息,唯一出現的是當圖像未正確鏈接時出現的「斷開鏈接」圖標。 – user1334130 2012-08-08 11:06:49