Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> RecursiveDirectoryIterator
230005
post
Post #1





Grupa: Zarejestrowani
Postów: 316
Pomógł: 36
Dołączył: 2.04.2008

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


Używając tej klasy dostaję taki błąd: Call to undefined method SplFileInfo::isDot()Wersja php: 5.3.1, odpowiednie klasy są włączone. Jakieś sugestie?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
wookieb
post
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




  1. $iterator = new RecursiveDirectoryIterator('.');
  2. foreach($iterator as $file) {
  3. if(!$iterator->isDot()) {
  4.  
  5. if(!$file->isDir()) {
  6. require_once($file->getPathname());
  7. }
  8. else {
  9. self::importFiles($iterator->getChildren());
  10. }
  11. }
  12. }

Mam nadzieję, że następnym razem nie wywołasz takich fatal errorów (IMG:style_emoticons/default/smile.gif)
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: 29.12.2025 - 03:45