![]() |
![]() |
![]()
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 |
|
|
![]() |
![]()
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 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 18:33 |