Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Funkcja imagecreatefrompng itp
_Martin_
post
Post #1





Grupa: Zarejestrowani
Postów: 352
Pomógł: 9
Dołączył: 16.09.2005
Skąd: Rybnik

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


  1. <?php
  2. if($_GET['p'] == "banner.gif" or $_GET['p'] == "banner.jpg"){
  3. $file = 'http://ks2014841.kimsufi.com/button.php?u=stronglord&t=6';
  4. $image = imagecreatefrompng($file);
  5. imagealphablending($image, false);
  6. imagesavealpha($image, true);
  7.  
  8. // start buffering
  9. imagepng($image);
  10. $contents = ob_get_contents();
  11.  
  12. echo "<img src='".$file."' />";
  13.  
  14. imagedestroy($image);
  15. }else{
  16. echo "errror";
  17. }
  18. //http://ks2014841.kimsufi.com/
  19. ?>

Witam.

Jak widać kod jest ok po kliknięciu w link
http://stronglord.pl/test.php?p=banner.jpg
Wyświetla nam się baner. ale jak dodam go jako adres do toplisty to nie wyswietla baneru po proswtu przezroczyste tło jak by adres podałem zły?
Why (IMG:style_emoticons/default/questionmark.gif) who help me?
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: 20.12.2025 - 18:16