ProG
Новичок
Проблемы с GD
Debug Error: /var/www/html/image.php line 3 - Call to undefined function imagecreatetruecolor()
Подумал что библиотека GD не подкл. но в phpinfo про GD :
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
WBMP Support enabled
Работаю в zend studio 5.5
-~{}~ 17.08.08 01:37:
чтобы еще хотел добавить делаю function_exists("imagecreatetruecolor") выводит что есть
PHP:
<?php
$size = 300;
$img = imagecreatetruecolor($size,$size);
$back = imagecolorallocate($img,255,255,255);
imagefilledrectangle($img,0,0,$size-1,$size-1,$back);
$y = imagecolorallocatealpha($img,255,255,0,75);
$r_ = imagecolorallocatealpha($img,255,0,0,75);
$b = imagecolorallocatealpha($img,0,0,255,75);
$r= 100;
imagefilledellipse($img,100,75,$r,$r,$y);
imagefilledellipse($img,120,165,$r,$r,$r_);
imagefilledellipse($img,187,125,$r,$r,$b);
header("Content-type : image/png");
imagepng($img);
?>
Подумал что библиотека GD не подкл. но в phpinfo про GD :
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
WBMP Support enabled
Работаю в zend studio 5.5
-~{}~ 17.08.08 01:37:
чтобы еще хотел добавить делаю function_exists("imagecreatetruecolor") выводит что есть