A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: cgi binned

  1. #1
    Member
    Join Date
    Sep 2000
    Location
    porto
    Posts
    74

    cgi binned

    im new to this dynamic content stuff.
    using cgi and lib files move flash data to a text file. as in tutorial
    on this site. It doesn't work. I suspect its something to do with
    file locations and/or permissions.

    where do i put my cgi bin?
    how do i change file permissions (dreamweaver ftp doent seem to have an option)

    cheers
    jim

  2. #2
    Moonlight shadow asheep_uk's Avatar
    Join Date
    Dec 2001
    Location
    London
    Posts
    2,010
    Is the server Linux or Windows?

    The cgi-bin goes in the root directory, but you can't just put the directory in and asume it will work - is CGI installed on the server?

    TE

  3. #3
    Member
    Join Date
    Sep 2000
    Location
    porto
    Posts
    74
    yeah sorted the file positions out now im having another prob.
    maybe you can help.flash/cgi/txt are all communicating but
    cgi sends empty variables to the txt files:

    cheers in advance if you can help
    jim

    heres the script

    #!/usr/bin/perl -W



    require "subparseform.lib";

    &Parse_Form;





    $Tex1 = $formdata{'Tex1'};

    $Contact = $formdata{'Contact'};

    $About = $formdata{'About'};

    $News = $formdata{'News'};

    $Products = $formdata{'Products'};

    $Link = $formdata{'Link'};



    @New = ("Tex1=$Tex1&Contact=$Contact&About=$About&Product s=$Products&News=$News&Link=$Link");



    open (LOG, ">/home/htdocs/hosted/draganddrop/drag-drop.net/test/Ex2TextFile.txt") || &ErrorMessage;

    print LOG "@New";

    close (LOG);





    print "Content-type: text/html\n\n";

    print "Status=Success - Your Comments have beed updated. Please return to the main area to see the results";



    sub ErrorMessage {

    print "Content-type: text/html\n\n";

    print "Status=Connection Failed Please Check the path to the text File";

    exit;

    }

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