Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Hello! I am using the following PERL code to display the contents of a sub-directory on my server: [code] sub doit { opendir(DIRHANDLE,"/home/username/public_html/$DirName"); @filenames = ( sort readdir(DIRHANDLE) ); foreach $dirfile (@filenames) { print "<b><a href='/$DirName/$dirfile' target='new'>$dirfile</a></b><br><br>"; } }[/code] That code simply opens a directory and spits out the contents … |
The End.