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
230005
post
Post #2





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

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


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


Iterator istnieje oczywiście (IMG:style_emoticons/default/smile.gif) . Wiem, że splFileInfo nie ma tej metody, ale co z tego? RecursiveDirectoryIterator dziedziczy po DirectoryIterator, który ją posiada.

Edit:
I oczywiście kiedy zamieniłem RecursiveDirectoryIterator na DirectoryIterator wszystko śmiga - tylko że nie o to mi chodzi...

Ten post edytował 230005 31.01.2010, 16:47:48
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: 27.12.2025 - 23:40