Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Accessing a database over the internet

( #41236=categorized question: print w/ replies, xml ) Need Help??
Contributed by damian1301 on Nov 13, 2000 at 04:05 UTC
Q&A  > database programming


Description:

I've been trying to figure out how to access a database or read a file from over the internet and I haven't really found much. A few pointers would be appreciated. Thanks, lAter

Answer: Accessing a database over the internet
contributed by Trimbach

How to "read a file" or "access a database" across the internet depends greatly on what exactly you want to do. "Reading a file" can be very simple... in fact, that's what you're doing when you surf the web: your web browser reads certain kinds of files and displays them in a browser window.

Of course, that's not the only way to read files "across the internet." You can also Telnet or FTP, or you can communicate at lower levels for more specific, custom operations. Databases are the same way: how do you want to "access" a database? Using a web browser? Using Telnet? Using a socket? Many questions, Grasshopper. For us to place you upon the path to enlightenment you must better elucidate the task you would like to accomplish. The Most Powerful and All Knowing "Search" box at the top of the screen is probably your best place to start... just type in what you want to do and see if it hasn't already been covered in sufficient detail in other posts.

Gary Blackburn Trained Killer

Answer: Accessing a database over the internet
contributed by dsb

I will assume you mean to access said database thru a Perl script. This can be done very easily with the Perl DBI module and the Perl DBD drivers corresponding to the type of database you are connecting to. I could go into it here but you should really get the book Programming the Perl DBI from Oreilly Assoc.. -kel

Please (register and) log in if you wish to add an answer



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (18)
    As of 2014-08-01 13:14 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Who would be the most fun to work for?















      Results (20 votes), past polls