Guest User

Untitled

a guest
Aug 25th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $fd = opendir( '/path/to/avi/directory/' );
  2.  
  3. echo '<ul>';
  4. while ( ( $file_name = readdir( $fd ) ) !== false ):
  5. if ( in_array( $file_name, array( '.', '..' ) ) ) continue;
  6. echo "<li><a href='http://server.com/ext/path/to/avi/directory/${file_name}'>${file_name}</a></li>";
  7. endwhile;
  8. echo '</ul>';
  9.  
  10. closedir( $fd );
Advertisement
Add Comment
Please, Sign In to add comment