$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 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/)
To unsubscribe, visit: http://www.php.net/unsub.php