Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114 Deprecated: Function eregi() is deprecated in /blog/wp-content/plugins/tpbc.php on line 96 Często zachodzi potrzeba przeliczenia danego pliku pod względem liczby linni tekstu, które w nim występują. Aby policzyć liczbę linii w pliku zastosuj następujące rozwiązanie: Przykład: Do zmiennej $plik przypisuję wartość "plik.txt". Pobieram wskazany plik funkcją file(). Zawartość pliku w formie tablicy zostaje policzona funkcją count(), a następnie przypisana do zmiennej $liczba_linii. Na koniec wyświetlam na ekran zmienną $liczba_linii. Autor: Adam Suchowski nowe Porady PHP » zobacz wszystkieWordPress database error: [Incorrect file format 'wp_comments']
|