Re: listing of directories into links

From: Date: Thu, 26 Sep 2002 12:52:54 +0000
Subject: Re: listing of directories into links
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117711@lists.php.net to get a copy of this message
$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


« previous php.general (#117711) next »