Hi,
I need to write a CGI script that creates hyperlinks to files in a directory.
Say I have two files in a sub-directory "doc" on my website:
Test1.pdf
Test2.pdf
And I want to search through the directory "doc" and then create a hyperlink on the page for every file that is in the directory.
This would mean that say someone added the file
Test3.pdf this would automatically create a hyperlink for this file when the page was accessed. Rather than having to update a static html page every time or embedding the actualy links in a cgi script.
Any help on this one would be very much appreciated. I hope my description is clear enough!
From Rob
I need to write a CGI script that creates hyperlinks to files in a directory.
Say I have two files in a sub-directory "doc" on my website:
Test1.pdf
Test2.pdf
And I want to search through the directory "doc" and then create a hyperlink on the page for every file that is in the directory.
This would mean that say someone added the file
Test3.pdf this would automatically create a hyperlink for this file when the page was accessed. Rather than having to update a static html page every time or embedding the actualy links in a cgi script.
Any help on this one would be very much appreciated. I hope my description is clear enough!
From Rob