Używam serwera: WampServer Version 2.0 (LINK).
Mam problem z dynamicznym generowaniem grafiki w PHP.
Takie cuś znalazłem na PHP.net (LINK) :
Cytat
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Więc otworzyłem plik php.ini i znalazłem tam coś takiego
...
; Windows Extensions...(potem kilka tych *.dll)
extension=php_gd2.dll
...
Ponadto w WampSerwer jest coś takiego:

I wreszcie moje pytanie: Czy ja o czymś zapomniałem jeśli chodzi o dynamiczne generowanie grafiki? Bo przeglądałem tutoriale na internecie i żaden mi nie chciał poprawnie działać. Może trzeba dograć jakieś jeszcze biblioteki, rozszerzenia albo co?
Oto przykład z php.net (który mi nie działał

Kod
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
Bardzo proszę o pomoc i z góry dziękuje za pomoc.