Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wyświetlanie w tabeli
Kopcioo
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 8.02.2013

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


Witam. Mam taki kod:
  1. $file = fopen("sampban.txt","r+");
  2. $bans = fread($file, filesize("sampban.txt"));
  3. fclose($file);
  4.  
  5. echo nl2br($bans);


I mam pytanie jak każdą odczytaną linijkę z pliku 'sampban' dać w TABELI / RAMCE? (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Kopcioo
post
Post #2





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 8.02.2013

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


Czyli w całości jak powinien wyglądać mój kod ?
  1. $ftp_host = "xxx"; //put the ip / hostname to your ftp here
  2. $ftp_user = "xxx"; //put your login here
  3. $ftp_pass = "xxx"; //put your password here
  4. $banfile = "samp.ban";
  5.  
  6. $con = ftp_connect($ftp_host) or die("Couldnt connect to your ftp (check your settings!");
  7. ftp_login($con, $ftp_user, $ftp_pass);
  8. ftp_get($con, "sampban.txt", $banfile, FTP_ASCII);
  9. ftp_close($con);
  10.  
  11. $file = fopen("sampban.txt","r+");
  12. $bans = fread($file, filesize("sampban.txt"));
  13. fclose($file);
  14.  
  15. echo nl2br($bans);
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: 28.12.2025 - 05:56