# Linking to an Unknown File?

**URL:** <https://forum.kirupa.com/t/linking-to-an-unknown-file/63573>\
**Category:** Uncategorized\
**Created:** [September 8, 2004, 3:44am UTC](https://forum.kirupa.com/t/linking-to-an-unknown-file/63573 "2004-09-08T03:44:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![limeshmoo](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@limeshmoo](https://forum.kirupa.com/u/limeshmoo)\
**Post date:** [September 8, 2004, 3:44am UTC](https://forum.kirupa.com/t/linking-to-an-unknown-file/63573/1 "2004-09-08T03:44:35Z")

</div>

We have a system (It is being called a “navigational tool”) that presents a series a processes in graphical form (Process Maps) and allows the user to visually navigate through a series of steps to ultimatley find a written procedure (there are 1000’s of these).

The person in charge of collating these documents will put the specified file (document) in a specified folder. The name of this file could therefore change depending on its version number etc. Is there a way to point my button link to a certain folder and having it load the file that is within this folder? There will only be one file in each folder and it may range from a Word Document, swf file, pdf file and even an Excel file. We are currently developing the system in Flash and HTML and it is a static system at present (no reading and writing from a database). Does anyone know a solution to this problem or should I be telling the Document control officer that when putting a new file in the folder it has to be the same file name as the previous???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 8, 2004, 8:17am UTC](https://forum.kirupa.com/t/linking-to-an-unknown-file/63573/2 "2004-09-08T08:17:29Z")

</div>

where do you store the folder names ? Is this accesible via flash ? i dont think so…

you could use php to scan folders and then fetch the filename from the folders

see the XXIV. Directory functions section in php manual. or online at [www.php.net](http://www.php.net)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 8, 2004, 10:19pm UTC](https://forum.kirupa.com/t/linking-to-an-unknown-file/63573/3 "2004-09-08T22:19:56Z")

</div>

Thanks… but PHP is not installed on the server that this will sit on.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 9, 2004, 4:07am UTC](https://forum.kirupa.com/t/linking-to-an-unknown-file/63573/4 "2004-09-09T04:07:10Z")

</div>

what is the server config ?

is it a web server ? it should alteast have perl / python / asp / [asp.net](http://asp.net) / coldfusion / php / jsp

otherwise there is no way this can be done.

at max, you can write a program in any of the above or in c/vb etc which will read the directory contents and make an xml file. this flash can read directly.
