![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 308 Pomógł: 0 Dołączył: 9.12.2009 Ostrzeżenie: (10%) ![]() ![]() |
Chciałbym żeby zawartość pliku txt była wyświetlana na stronie po 10 wpisów (\n)
Oto kawałek mojego kodu Kod <?php
$file = file("message.txt"); foreach($file as $value) { $exp = explode("|",$value); $exp[0] = stripslashes($exp[0]); $exp[0] = ereg_replace("<","<", $exp[0]); $exp[0] = ereg_replace(">",">", $exp[0]); $exp[0] = ereg_replace("\n", "<BR>", $exp[0]); $exp[1] = stripslashes($exp[1]); $exp[1] = ereg_replace("<","<", $exp[1]); $exp[1] = ereg_replace(">",">", $exp[1]); $exp[1] = ereg_replace("\n", "<BR>", $exp[1]); echo "<center><br><table rules=1 border bgColor=#DCDCDC width=550><tr><td><b><a title=".$exp[3]."> ".$exp[0]."</a></b></td>"; echo "<td><div align=right>".$exp[2]." "; echo "<tr><td colspan=2 ><div style=margin-left:5 style=margin-right:5>".$exp[1]."</td>"; echo "</td></tr></table>"; } ? Ten post edytował david8213 9.12.2009, 18:58:53 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 27.06.2025 - 02:38 |