A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Php flash save

  1. #1
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323

    Exclamation Php flash save

    see this:

    <?php
    $text = $_POST[sendText];
    $myfile = fopen("scores.txt","a");
    $fp = fwrite($myfile,$text);
    $fp = fwrite($myfile,chr(13));
    fclose($myfile);
    print "&response=".$text;
    ?>

    i need to know if it will make scores.txt if it is used.

    if it doesn't tell me how to make it!

  2. #2
    |-'|-'|
    Join Date
    Jan 2006
    Posts
    273
    http://www.zachsaw.co.cc/?pg=quickph...ester_debugger

    test it yourself.

    and no it will not make score.txt. It will try to open but not make one. (afaik)

  3. #3
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    oh man! does anybody know how to make one if it doesn't exist?

    you know what i could just switch to plan b: save it all into one shared object on the server.

    i know how to use shared objects but i don't know how to make them all save at the one place on the website!!!

    unless somebody knows how to make a txt file with PHP i need to know how to share a shared object (not like remotely)

  4. #4
    |-'|-'|
    Join Date
    Jan 2006
    Posts
    273
    I think if you use google search, you could have finish with this a whole lot sooner.

    http://sg2.php.net/fopen

    read the description for fopen parameter. and I am pretty sure this is a flash help, maybe you should look for php help somewhere?

  5. #5
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    ok i had a look its pretty good thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center