Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> is_dir, folder w folderze
ARJ
post
Post #1





Grupa: Zarejestrowani
Postów: 453
Pomógł: 22
Dołączył: 20.09.2004
Skąd: Kraków - NH -

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


przeszukiwałem forum ale nie znalazłem odpowiedzi.
  1. <?
  2. if(isset($_GET[&#092;"folder\"])){
  3. $folder=opendir(&#092;"./\". $_GET['folder']);
  4. while($file = readdir ($folder)){
  5. if(is_dir($file)){
  6. echo &#092;"Folder<A HREF=\"\". $_SERVER[\"PHP_SELF\"] .\"?folder=\". $file .\"\">\". $file .\"</A><BR />\";
  7. }else{
  8. echo $file .&#092;"<BR />\";
  9. }
  10. }
  11. }else{
  12. $folder=opendir(&#092;".\");
  13. while($file = readdir ($folder)){
  14. if(is_dir($file)){
  15. echo &#092;"Folder<A HREF=\"\". $_SERVER[\"PHP_SELF\"] .\"?folder=\". $file .\"\">\". $file .\"</A><BR />\";
  16. }else{
  17. echo $file .&#092;"<BR />\";
  18. }
  19. }
  20. }
  21. ?>

problem jest w tym że gdy wejde do folderu a tam jest następny to już do niego wejść niemoge.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 7.10.2025 - 00:38