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
 
Start new topic
Odpowiedzi
.radex
post
Post #2





Grupa: Zarejestrowani
Postów: 1 657
Pomógł: 125
Dołączył: 29.04.2006

Ostrzeżenie: (0%)
-----


jeżeli zrobisz <form> to moższ zrobić <input type="hidden" name="x" value="x">
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: 12.10.2025 - 01:09