[flexcoders] Re: Write file to server

2008-12-22 Thread valdhor
Mike You need to send your data to some kind of server side code (Eg. PHP). >From your code, you are sending data to a text file. A text file has no idea what to do with the data you are sending it (Actually, the text file doesn't even see the data - text files are very unintelligent as files go)

[flexcoders] Re: Write file to server

2008-12-22 Thread valdhor
Alan We don't know, as yet, what server the OP is using. Once we do we can offer some suggestions for what he wants to do. --- In flexcoders@yahoogroups.com, Alan wrote: > > Do something like this server side: > >header('Content-type: text/csv'); > > > //$csvData =

[flexcoders] Re: Write file to server

2008-12-23 Thread mccaffreymike
OK, I understand. Ultimately, the data in this file will be passed via a webservice to and from a weblogic server. While developing just the ointerface piece, I thought I might be able to work just locally by reading/writing the file out. Guess it works on the read but not on the write. Altho

[flexcoders] Re: Write file to server

2008-12-23 Thread valdhor
> Although, is there a way to write it on weblogic without a separate > script to catch the request and write the data? Sounds like not. You would be correct. You need some code/script in WebLogic to catch the data that is being sent and then do something with it (Like writing to a file). --- I

Re: [flexcoders] Re: Write file to server

2008-12-22 Thread Alan
Do something like this server side: // $csvData = ($_POST['csvdata']) ? $_POST['csvdata'] : $_GET['csvdata']; $csvData = $_POST['tsvString']; echo $csvData; ?> "csvdata" and "tsvString" are vars ( strings) that I set in my flashvars Alan On Dec 22, 2008, at 8:5