Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem ze wstawianiem <BR>.
vvoyteq
post
Post #1





Grupa: Nieautoryzowani
Postów: 3
Pomógł: 0
Dołączył: 8.01.2006

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


Witam
prosze o pomoc z funkcja nl2br() albo z readfile().
Dziala to tak ze wczytuje mi text z pliku dns.txt ale nie chce go formatowac przez wstawianie <BR>.

  1. <?php
  2.  
  3. $string = readfile("dns.txt");
  4.  
  5. echo nl2br($string);
  6.  
  7. ?>


z gory thx za pomoc. (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
hwao
post
Post #2


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




Mozna to zrobic sposobem kamikadze (IMG:http://forum.php.pl/style_emoticons/default/Rkingsmiley.png)

  1. <?php
  2. echo join( '<br />', file( 'dns.txt' ) );
  3. ?>
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: 11.10.2025 - 15:43