rgpaddler Posted July 15, 2007 Share Posted July 15, 2007 Hi I'm in a bit of a fix and a complete beginner at php,although it might be a question I need to ask on a flash forum. A php sequencer I found stores information such as notes and instruments in a txt file with a randomly generated name such as:- 8039698269.mix and looks like this:- a:37:{s:6:"aktiv1";s:2:"on";s:5:"note1";s:2:"35";s:5:"inst1";s:1:"1";s:4:"vol1";s:3:"127";s:3:"n10";s:2:"on";s:3:"n14";s:2:"on";s:3:"n18";s:2:"on";s:4:"n112";s:2:"on";s:6:"aktiv2";s:2:"on";s:5:"note2";s:2:"38";s:5:"inst2";s:1:"1";s:4:"vol2";s:3:"127";s:3:"n20";s:2:"on";s:3:"n24";s:2:"on";s:3:"n28";s:2:"on";s:4:"n212";s:2:"on";s:5:"note3";s:2:"35";s:5:"inst3";s:1:"1";s:4:"vol3";s:3:"127";s:5:"note4";s:2:"35";s:5:"inst4";s:1:"1";s:4:"vol4";s:3:"127";s:5:"inst5";s:1:"0";s:5:"note5";s:2:"35";s:4:"vol5";s:3:"127";s:5:"inst6";s:1:"0";s:5:"note6";s:2:"35";s:4:"vol6";s:3:"127";s:5:"inst7";s:1:"0";s:5:"note7";s:2:"35";s:4:"vol7";s:3:"127";s:5:"inst8";s:1:"0";s:5:"note8";s:2:"35";s:4:"vol8";s:3:"127";s:3:"bpm";s:3:"150";s:3:"rep";s:1:"4";s:7:"publish";s:7:"Publish";} the thing is I'm trying to write a flash application that will generate these values and send them to php as a single string variable.I'm stuck because flash wont except the quotation marks within the data - so I'm stuck.I'm guessing its something to do with serialization? If anybody has a clue how this can be done,your help would be extremely appreciated.Cheers Quote Link to comment Share on other sites More sharing options...
ss32 Posted July 15, 2007 Share Posted July 15, 2007 this may seem stupid... but did you escape the quotation marks in your code (im assuming what you posted is an output) \" Quote Link to comment Share on other sites More sharing options...
rgpaddler Posted July 15, 2007 Author Share Posted July 15, 2007 not stupid at all - that worked - brilliant thanks very much there is hope yet! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.