# Send Text File With Flash

**URL:** <https://forum.kirupa.com/t/send-text-file-with-flash/264709>\
**Category:** flash\
**Created:** [June 29, 2008, 4:18am UTC](https://forum.kirupa.com/t/send-text-file-with-flash/264709 "2008-06-29T04:18:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eth](https://avatars.discourse-cdn.com/v4/letter/e/6bbea6/32.png) [@Eth](https://forum.kirupa.com/u/Eth)\
**Post date:** [June 29, 2008, 4:18am UTC](https://forum.kirupa.com/t/send-text-file-with-flash/264709/1 "2008-06-29T04:18:50Z")

</div>

I have a Flash app that generates a formatted file, that I want to save/send this file some where, and then using the PHP’s shell\_exec command to open a program and send it the formatted file. Finally, I want to take the $output from the command and send it back to Flash 8. How do I go about sending the file to PHP and send it to the program through the shell\_exec? Thanks for any help.

---

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [June 30, 2008, 1:16pm UTC](https://forum.kirupa.com/t/send-text-file-with-flash/264709/2 "2008-06-30T13:16:51Z")

</div>

It would be easier if you just send the information in a variable and then create/save the file in PHP. To do so you need to use sendAndLoad class. This will send the information and return to Flash any variables you wish to send.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 1:24pm UTC](https://forum.kirupa.com/t/send-text-file-with-flash/264709/3 "2008-06-30T13:24:30Z")

</div>

up he’s right, php can render xml files, more useful than text files
