Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Tablica nie wypwłniona jak należy, Na początku jest ok później jest dno
mlody1982
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 11.03.2006

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


kod:
$uchwyt = @fopen ($_x, "r");
if ($uchwyt)
{
while (!feof($uchwyt))
{
$tmp['lines'] = fgets($uchwyt, 4096);
var_dump($tmp);
echo "<br><br>";
}
$arrPaths[] = $tmp;
var_dump($arrPaths);
}
@fclose($uchwyt);

Wynik:

array(1) { ["lines"]=> string(6) "1asd " }

array(1) { ["lines"]=> string(6) "2asd " }

array(1) { ["lines"]=> string(6) "3asd " }

array(1) { ["lines"]=> string(6) "4asd " }

array(1) { ["lines"]=> string(6) "5asd " }

array(1) { ["lines"]=> string(4) "6asd" }

array(1) { [0]=> array(1) { ["lines"]=> string(4) "6asd" } } <-- Dlaczego ta ma tylko ost element, potrzebuje wszystkie
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
NuLL
post
Post #2





Grupa: Zarejestrowani
Postów: 2 262
Pomógł: 21
Dołączył: 3.05.2004
Skąd: Sopot, Krakow, W-wa

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


file_get_contents" title="Zobacz w manualu PHP" target="_manual (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

Ten post edytował NuLL 15.05.2007, 08:55:03
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: 8.10.2025 - 18:33