Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Tworzenie obrazka
-Guest-
post
Post #1





Goście







  1. <?php
  2.  
  3. header("Content-type: image/png");
  4. $im = @imagecreate(100, 50)
  5.  or die("Cannot Initialize new GD image stream");
  6. $background_color = imagecolorallocate($im, 255, 255, 255);
  7. $text_color = imagecolorallocate($im, 233, 14, 91);
  8. imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
  9. imagepng($im);
  10. imagedestroy($im);
  11.  
  12. ?>


Znalazłem na php.net ten skrypt który tworzy obrazek z napisem. Problem polega na tym że nie wiem jak wyświetlić ten obrazek w połowie strony. Ponieważ wyskakuje mi błąd związany z header
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 11:02