Page 1 of 1

Reading from a file on client side

Posted: Tue Dec 16, 2003 10:38 am
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

Posted: Tue Dec 16, 2003 10:46 am
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

Posted: Tue Dec 23, 2003 7:59 pm
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: