Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Dynamiczne generowanie obrazów, Jak podciągnąć zmienną z GET pod łącze?
olme
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 24.06.2006

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


  1. <?php
  2.  
  3. header("Content-type: image/png");
  4. $string = $_GET['text'];
  5. $im = imagecreatefrompng("next_station.png");
  6. $color = imagecolorallocate($im, 000, 000, 000);
  7. $px = (imagesx($im) - 3.60 * strlen($string)) / 2;
  8. imagestring($im, 43, $px, 4, $string, $color);
  9. imagepng($im);
  10. imagedestroy($im);
  11. ?>


Chciałbym, aby zmienna $text była wykorzystana także w linku, np.
  1. <?php
  2. <A HREF=$text.php>$text</A>
  3. ?>

Ale takie polecenie nic nie daje, wyświetla się tylko obraz.
Macie jakieś rady?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 15.09.2025 - 01:32