Reading from a file on client side

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
deeeee
Forum Newbie
Posts: 1
Joined: Tue Dec 16, 2003 10:38 am

Reading from a file on client side

Post by deeeee »

Hello,
I am trying to use the fopen function to read from an XML file on the client side.
What I have done is to make a flash movie (offline) open the URL:

http://somewhere.com/readfile.php?file=c:\temp\file.xml

The script will then open and read the xml file and do what it has to. When this script is run I get a 'unable to open file' error.
I realise that this can work perfectly if the XML file is located on the server but if anyone has any ideas on how to read from a file on the client side you will surely make my week!

Thanks!
Dee
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

You can ask the user to upload the file to your server?

Or you can use one of the many security holes in Internet Explorer and exploit it. Course, that might get you into trouble. :P
Skyzyx
Forum Commoner
Posts: 42
Joined: Fri Feb 14, 2003 1:53 am
Location: San Jose, CA

Post by Skyzyx »

microthick wrote:Or you can use one of the many security holes in Internet Explorer and exploit it. Course, that might get you into trouble. :P
Yeah, but that wouldn't be cross-browser! HAHAHAHAHAHAHA!!!!! :lol:
Post Reply