flash - Create text file using PHP and AC2 -


so have php code, actionscript code. when run flash file, doesn't want write. i've been searching hours solution online, not permissions. (note, not hosted on server, in folder on computer, issue?)

php

<?php $fscrn = $_post['fscrn'] $saveto = "full=".$fscrn."&" file_put_contents("video.txt",$saveto) ?> 

and actionscript 2

var videoresponse = new loadvars(); videoresponse.onload = function(success) {     if (success)     {         trace("successful")     } } var videovar = new loadvars(); videovar.fscrn = "true"; videovar.sendandload("config/video.php",videoresponse,"post"); 

bonus: image of file structure

where swf located https://gyazo.com/918b0d9bcdb51996089b5d45846d1fd2

where php located https://gyazo.com/e758818fe895183b003e5b0fa5741abf

anyone know solutions? (it print "successful" when run though)

tl:dr > doesn't create new text file when php runs


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -