Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dynamiczna sygnatura, kilka pytań :)
wojtula
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 1.07.2009

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


Znalazłem taki skrypt :

  1. <?php
  2.  
  3. $image = "obrazek.png";
  4. $im = imagecreatefrompng($image);
  5. $color = ImageColorAllocate ($im, 0, 0, 0);
  6. $ip = $_SERVER["REMOTE_ADDR"];
  7. $browser = $_SERVER['HTTP_USER_AGENT'];
  8.  
  9. $TextFile = "licznik.txt";
  10. $Count = trim(file_get_contents($TextFile));
  11. $FP = fopen($TextFile, "r");
  12. $Count=fgets($FP, 4096);
  13. fclose ($FP);
  14. settype($Count, "integer");
  15. $Count++;
  16. if ($FP = fopen ($TextFile, "w")){
  17. fwrite ($FP, $Count);
  18. fclose ($FP);
  19.  
  20. }
  21.  
  22. ImageString($im, 2, 320, 25, "Twoje IP: $ip", $color);
  23. ImageString($im, 2, 32, 25, "Sygnatura zostala wyswietlona $Count razy", $color);
  24. ImageString($im, 1, 32, 110, "$browser", $color);
  25. header("Content-Type: image/png");
  26. Imagepng($im,'',100);
  27. ImageDestroy ($im);
  28.  
  29. ?>


I zrobiłem taką sygnature:

www.mobimaster.yoyo.pl/sygnatura.png/

Mam tylko kilka problemów a mianowicie :

1. Jak zmienić czcionke
2. Jakie funkcje jeszcze można dołożyć
3. Jak wyciągnąć z forum phpbb3 informacje o liczbie postów itd.

Mam nadzieje że pomożecie (IMG:http://forum.php.pl/style_emoticons/default/withstupidsmiley.gif)

Ten post edytował wojtula 1.07.2009, 21:23:56
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nexis
post
Post #2





Grupa: Zarejestrowani
Postów: 1 012
Pomógł: 109
Dołączył: 26.09.2003
Skąd: nexis.pl

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


Cytat(wojtula @ 1.07.2009, 22:21:38 ) *
3. Jak wyciągnąć z forum phpbb3 informacje o liczbie postów itd.


  1. <?php
  2. $file = file_get_contents('http://forum.php.pl/Zobacz_profil_m42862.html');
  3. preg_match('/([0-9]{1,}) post/i', $file, $matches);
  4. echo $matches[1];
  5. ?>


Ten post edytował nexis 2.07.2009, 10:47:33
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: 3.10.2025 - 16:59