Re: [PHP] listing of directories into links

2002-09-26 Thread Marek Kilimajer
$d=opendir('/home/'); while($u=readdir($d)) { if($u!='.' && $u!='..' && (fileexists('/home/'.$u.'/public_html/index.html') || fileexists('/home/'.$u.'/public_html/index.php') ... more index files)) { echo ..link..; } } untested Bryan Koschmann - GKT wrote: >Hi, > >I need to do someth

[PHP] listing of directories into links

2002-09-25 Thread Bryan Koschmann - GKT
Hi, I need to do something where my page is a generated list of directories. Say, I want to easily make links to all user pages (/home/user1/public_html, /home/user2/public_html, and so on). Can anyone give me any ideas? Thanks, Bryan -- PHP General Mailing List (http://www.php.net/