folder tree help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ina
Forum Newbie
Posts: 5
Joined: Tue Apr 30, 2002 3:38 am

folder tree help!

Post by ina »

hi,
i try to find the sample coding to create the dynamic folder tree menu that reading the directory browser (contain files/folders). also available for i.e and netscape 4.x
dusty
Forum Contributor
Posts: 122
Joined: Sun Apr 28, 2002 9:52 pm
Location: Portsmouth, VA

Post by dusty »

Code: Select all

<?
$root = "/www/";
if ($handle = opendir($root)) &#123;
  while($file = readdir($handle)) &#123;
    if ($file != "." && $file != "..") &#123;
      echo "$file<br>";
    &#125;
  &#125;
  closedir($handle);
&#125;
?>
this may be what you're talking about, it displays all of the contents of a given dir. if not, be more specific.
ina
Forum Newbie
Posts: 5
Joined: Tue Apr 30, 2002 3:38 am

Post by ina »

i still not have the right answer to solve my problem here.
what i mean is i want to create the function to manage folders/files like windows explorer. but here user can browse the contain of files/folders start from the folder we allow.
Post Reply