Results 1 to 2 of 2

Thread: Question How to make Flash works with PHP to create TXT file?

  1. #1
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Question How to make Flash works with PHP to create TXT file?

    so here goes,

    the point is, i have created an order form in flash cs3 with actionscript 3.0, and my lecture wants my flash to be working with PHP, so if i click the submit button, my flash will load the PHP file and created a .TXT file in the directory(offline) which includes the information of the order form!

    i've already research for this problem, but all i got is a script to send email from a form! i need something that can be working offline to show it to my lecture..

    maybe the php script would be something like this example,

    <?php
    $File = "YourFile.txt";
    $Handle = fopen($File, 'w');
    $Data = "Jane Doe\n";
    fwrite($Handle, $Data);
    $Data = "Bilbo Jones\n";
    fwrite($Handle, $Data);
    print "Data Written";
    fclose($Handle);
    ?>
    but i still need help from the master please! thanks!! i have to collect it tomorrow (GMT+7!) !! :worship:

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Quote Originally Posted by benazio View Post
    i have created an order form in flash cs3 with actionscript 3.0, and my lecture wants my flash to be working with PHP, so if i click the submit button, my flash will load the PHP file and created a .TXT file in the directory(offline) which includes the information of the order form!
    This is actually a Flash problem; you need a way to accomplish an AJAX-esque effect (asynchronously query the server) from Flash. The language of the script to be queried is irrelevant for this part of your project; it will be the same ActionScript code.

    I don't know Flash, but I recall reading the documentation for a project which did just this with it. It does use the Flash API, but unfortunately not ActionScript; here it is: http://jimbojw.com/wiki/index.php?ti...HttpRequest.hx I see you also posted this topic in Flash, so I hope you get a better answer there.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

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