Reading an MS Access Database file on *NIX platform using PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Weston C

    #1

    Reading an MS Access Database file on *NIX platform using PHP

    I'm building a small web application for a friend using PHP. He'd like to
    use MS Access to keep the data in, and update the data on the site by FTP'ing
    Access files he edits on his machine up to the web host.

    The web host is unix-based (FreeBSD, slightly hacked by Verio, I believe), so
    this means COM functions aren't available. ODBC was my next thought, but I've
    never used it, and there are a few things I don't understand. Setting up a
    DSN is one of them -- apparently this isn't as simple as constructing a string,
    and all the tutorials I can find seem to involve going into a Windows control
    panel and making a setting. This of course will not be possible, since there
    are no windows control panels on FreeBSD.

    Can anyone offer any quick tips on how to use the odbc database functions or
    PEAR::DB to query data from an MS Access file sitting on a UNIX box?

    Thanks in advance!
  • Michiel

    #2
    Re: Reading an MS Access Database file on *NIX platform using PHP

    Weston C wrote:[color=blue]
    > I'm building a small web application for a friend using PHP. He'd like to
    > use MS Access to keep the data in, and update the data on the site by FTP'ing
    > Access files he edits on his machine up to the web host.
    >
    > The web host is unix-based (FreeBSD, slightly hacked by Verio, I believe), so
    > this means COM functions aren't available. ODBC was my next thought, but I've
    > never used it, and there are a few things I don't understand. Setting up a
    > DSN is one of them -- apparently this isn't as simple as constructing a string,
    > and all the tutorials I can find seem to involve going into a Windows control
    > panel and making a setting. This of course will not be possible, since there
    > are no windows control panels on FreeBSD.
    >
    > Can anyone offer any quick tips on how to use the odbc database functions or
    > PEAR::DB to query data from an MS Access file sitting on a UNIX box?
    >
    > Thanks in advance![/color]


    You could upload a csv file and then import it into mysql with "LOAD
    DATA INFILE 'filename' INTO table". You can create a csv file from
    Access with "Save as".

    Michiel.

    Comment

    • Peter Jones

      #3
      Re: Reading an MS Access Database file on *NIX platform using PHP

      Michiel <michiel@...NO. ..SPAM!*.2see.n l> wrote in
      news:3f4a7c6a$0 $49106$e4fe514c @news.xs4all.nl :
      [color=blue]
      > You could upload a csv file and then import it into mysql with "LOAD
      > DATA INFILE 'filename' INTO table". You can create a csv file from
      > Access with "Save as".[/color]

      You can do that?

      Excuse me, I'll be over in the corner, kicking myself... :-)

      Pete.

      Comment

      Working...