Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Send data to Text file in Flash

Send data to Text file in Flash

Scheduled Pinned Locked Moved IT & Infrastructure
phpadobedata-structuresdebugginghelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garga1
    wrote on last edited by
    #1

    Can anybody tell me how to send data to text file from flash 8. My code is : // This is written in Flash myData = new LoadVars(); myData.onLoad = function(){ if(this.writing==”Ok”) { trace (”Data saved”); } else { trace(”Data Not saved”); } } Submit.onPress=function() { myData.notes = notes.text; trace(myData.notes); myData.sendAndLoad(”save.[php”, myData, “POST”); notes.text=”"; } //Code in PHP <?php //Capture data from $_POST array $notes = $_POST[’notes’]; //Make one big string in a format Flash understand $toSave =$notes; echo $notes; //Open a file in write mode $fp = fopen(”E:\ABAP\NotesFile.txt”, “w”); if(fwrite($fp, $toSave)) echo “writing=Ok&”; else echo “writing=Error&”; fclose($fp); ?> Still it doesn’t work. It doesn’t save data in text file and shows Data not saved message..

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups