I don't know enough about FlashMX to really say much, but I'll try anyway.

I see two basic ways (well, perhaps three or four, but two applicable ways) to get the data from the flash form to the perl script. Either the perl script can be accessable via HTTP (which doesn't neccessarly mean running a full webserver, but I'll get to that in a moment), or you can set up the frontend (the FlashMX program) to run the perl program with some arguments. They each have their own set of problems.

I suspect running a webserver is what you want to do. You can either set up a web server, and get your script to run as a CGI, or you can write a web server in perl. Either is fairly easy -- Apache and IIS are both easy to setup (for a simple server like this), and HTTP::Daemon is rather easy to use. Doing it this way avoids the contention and locking problems you'd have with doing everything on the client side.

You can also have the frontend simply call the backend with a bunch of parameters. However, if you do it this way, you'll end up with a long commandline, which windows may not like. Also, you'll have to deal with locking issues (file locking over a network isn't the easiest thing in the world, though you do have the advantage of a relitavely homogonious installed base, and only one file server). However, you won't have the administrative and security problems associated with yet another server.

I'm sure I'm forgetting somthing, but I normaly am. For that matter, "am" can refer to either being sure, or forgetting somthing... no what did I do with my brain again? It's around here somewhere, I'm sure.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


In reply to Re: Can Perl create its own searchable db? by theorbtwo
in thread Can Perl create its own searchable db? by Bismark

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.