Probably one of the reasons that few know a solution to your problem is that you're not describing it too well.

How does your program on the website send data to the CGI script? Does it do a form submit itself? Why does it matter that the program is on the website? Where does the HTML page go when it's generated? Back to the program that submitted the form data? Why? How did you convert the perl script to the exe? What happened to the other program (the one that was doing form submits)? Which "that exe" are you referring to -- the first one that sends data to the CGI or the Perl script that was rewritten in C++? How did you try to submit form data to the C++ exe? Is it accessible to a web server somewhere? If not, how did you submit it?

Anyway, it's all very confusing.

If you mean, "how do I make a web-based application work on an arbitrary machine", you probably need to get a web server.

If you just want to run some CGIs and serve some static pages on someone's desktop machine, get a little web server to run there. Since you have Perl, let me suggest HTTPi which is a nice small web server that's easy to set up and is in portable Perl.


In reply to Re: exe on local machine by bikeNomad
in thread exe on local machine by Kevin Ar18

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.