mam duży problem z którym nie mogę sobie poradzić,
Chodzi o bibliotekę GD, gdy robię taki skrypt:
<?php $im = @imagecreate(50, 100) $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im); ?>
To zamiast obrazka pojawia mi się: �PNG ��� IHDR���2���d����&����PLTE����[�˝����
chciałem zapytać czemu tak się dzieje i jak to naprawic ?
Dodam że probowałem korzystać z innych funkcji gd (takich jak rotacja obrazka itp. i to dziala).
Moja wersja php: 4.4.8
Co do GD to:
Cytat
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
będę wdzięczny za szybką pomoc.
Pozdrawiam
PS. Dodam jeszcze że kod testowałęm na innym serwerze (z php5) i tam działało poprawnie.
MA KTOŚ JAKIEŚ POMYSŁY ?