![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 48 Pomógł: 0 Dołączył: 25.06.2002 Skąd: Koszalin Ostrzeżenie: (0%) ![]() ![]() |
Witajcie. Mam pewien problem z którym nie mogę się uporać. Otóż moj serwer nie ma bibliotek GD, a musze zrobic licznik graficzny, wiec sobie pomyslalem, ze napisze taką funkcje(no wlasnie mam problem w jej napisaniu:)), że np liczbe 1546 zamiani na <img src=cyfry/1.gif><img src=cyfry/5.gif><img src=cyfry/4.gif><img src=cyfry/6.gif>. Jak macie jakis pomysl, to prosze o odp;)_
Pozdrawiam, Mati http://webmaster.bajo.pl http://4webFREE.prv.pl |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 48 Pomógł: 0 Dołączył: 25.06.2002 Skąd: Koszalin Ostrzeżenie: (0%) ![]() ![]() |
Dzieki panowie. Juz rozwiazalem ten problem:) zrobilem tak:
Kod function licznik($text){
$text = str_replace("1", "<img src="cyfry/$style/1.gif" border=q>", $text); $text = str_replace("2", "<img src="cyfry/$style/2.gif" border=q>", $text); $text = str_replace("3", "<img src="cyfry/$style/3.gif" border=q>", $text); $text = str_replace("4", "<img src="cyfry/$style/4.gif" border=q>", $text); $text = str_replace("5", "<img src="cyfry/$style/5.gif" border=q>", $text); $text = str_replace("6", "<img src="cyfry/$style/6.gif" border=q>", $text); $text = str_replace("7", "<img src="cyfry/$style/7.gif" border=q>", $text); $text = str_replace("8", "<img src="cyfry/$style/8.gif" border=q>", $text); $text = str_replace("9", "<img src="cyfry/$style/9.gif" border=q>", $text); $text = str_replace("0", "<img src="cyfry/$style/0.gif" border=q>", $text); return $text; } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 01:37 |