PDA

View Full Version : Does a file exist?


almeric
01-29-2003, 07:58 PM
Hiyas :)

Let's say I have an input field that allows a user to enter a file name. Then I'll load up some information from that filename.

Everything works great if the file exists, but what to do if it doesn't exist?

Is there a way to simply check for the existance of an external local file before I try to load it?

Thanks :)
-Jeff

Jesse
02-02-2003, 02:41 AM
I made one a while back: http://www.actionscripts.org/showMovie.php?id=428
And I saw a good script which was entirely Flash-based (no PHP) over at FlashGuru.co.uk only about two weeks ago. Check it.