Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem :]
kt1
post 22.10.2006, 08:43:03
Post #1





Grupa: Zarejestrowani
Postów: 131
Pomógł: 3
Dołączył: 9.02.2006
Skąd: moree.webd.pl

Ostrzeżenie: (10%)
X----


Witam ehh znów mam problem :]



  1. <?php
  2. foreach (glob('katalog/*.php') as $filename) {
  3.  
  4. $array = array( ":D" => '<img src="emot1.gif" />',
  5. ":)" => '<img src="emot2.gif" />',
  6. ":D" => '<img src="emot3.gif" />',
  7. ":P" => '<img src="emot4.gif" />'
  8. );
  9.  
  10. $newString = strtr( $filename, $array );
  11.  
  12. echo $newString;
  13.  
  14. }
  15. ?>


mam taki kod
który powinien wyświetlać e motki ale nie wyświetla co jest żle questionmark.gif


--------------------
Jeśli masz jakieś fajne tutki albo coś inne związane z php mysql AJAX to wejdź
tu WEJDZ TU I DODAJ !!! :)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
Cysiaczek
post 22.10.2006, 09:50:25
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Ten kod działa. Nie jestem jednak pewien, czy na pewno chodzi Ci o to, co o robi, a robi to:
http://img132.imageshack.us/my.php?image=zrzutekranu2nl4.png
Czy może chodzi Ci o emotkowanie zawartości plików?


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
dr_bonzo
post 22.10.2006, 09:56:32
Post #3





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Cytat
Witam ehh znów mam problem :]

100% true

Czekam na PW z nowym tytulem topiku (+linkiem do tego topiku) to otworze.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 23:26