... does that mean that I automatically can use the DBI to connect to my DB if I put it in the CGI BIN?

If you're asking if you can access your home copy of Access from a CGI running on your (non-home) web host, the answer is a qualified No, with the proviso that my knowledge of Access stop with Access 2000.

If Access 2002 is a true server (i.e., one you can connect to via socket), then you could arrange to have your home box periodically broadcast an IP address to your web host. Then use this IP address in your DBI connect string. Unless you could set up a selective firewall, this would mean exposing your (Microsoft) database product to the world at large. Recent history has shown this to be a Very Bad Idea.

An alternative is to delegate work back to your home server at a higher level. This also requires that your home server periodically publish its IP address to your web host, and requires that you construct a server process that listens for requests, translates the requests into SQL, then bundles up the results to transmit back to the web host CGI, which then needs to unpack and display them.

Another alternative is to see if your web host supports MySQL, then bite the bullet and upgrade your database.


In reply to Re: DBI on Web Host? by dws
in thread DBI on Web Host? by chief_wpd

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.