Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Losowe zdjecie, pomoc
--nuker44--
post
Post #1





Goście







Witam, potrzebuje zedytować ten kod by wyswietlał losoowo element img_empty.jpg, img_empty2.jpg etc. Mogłbym prosić kogos o pomoc?

  1. <?php
  2. $textwidth = abs($box[4] - $box[0]);
  3. $x_finalpos = 255-($textwidth/2);
  4. $image = imagecreatefromjpeg('img_empty.jpg');
  5. $font_color = ImageColorAllocate($image,0,0,0);
  6. ImageJPEG($image, $img);
  7. ImageDestroy($image);
  8. ?>
Go to the top of the page
+Quote Post

Posty w temacie
- -nuker44-   [PHP] Losowe zdjecie   21.08.2012, 19:25:22
- - CuteOne   google -> php rand() google -> php array() ...   21.08.2012, 20:01:25
- - -nuker44-   jestem zielony w php, moglby mi ktos pomoc z tym?   22.08.2012, 09:28:54


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: 29.09.2025 - 09:30