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

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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!
    Weston C Guest

  2. Similar Questions and Discussions

    1. upload a jpg file to an access database...???
      I think I heard that you can't have a jpg in an access database, however you could point to where the jpg was from within the database. What I need...
    2. Help needed with ASP form browse for file, create link to file and insert in access database
      I have a form where a user enters their name, date etc. i also want them to be able to click on a browse button and select a file which will then...
    3. Error reading from Access Database
      Hi Folks Actually I am new to ASP, I will be thankful so much if anyone could help I have an Access2000 Database, I have Listing.html that has...
    4. [PHP] Reading an MS Access Database file on *NIX platform using PHP
      On Sun, 24 Aug 2003 14:54:41 -0400 (EDT), you wrote: Suggestion: go backwards. Set up the data in, say, MySQL with an ODBC driver, and use...
    5. [PHP] Reading an MS Access Database file on *NIX platformusing PHP
      At 03:18 25.08.2003, Weston Cann said: ---------------------------------------- ---------------------------------------- You could do that...
  3. #2

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

    This is a widespread problem. One which we faced, and eventually solved by
    deciding to just write the application in .NET instead.

    Some links that may be helpful...
    This link deals with problems trying to use PHP's built-in function
    "odbc_connect" on a Linux box:
    [url]http://forums.devshed.com/t37357/s.html[/url]

    These links mention using database functions within this PHP include
    library (adodb.inc.php) and skipping ODBC altogether:
    [url]http://www.devshed.com/Server_Side/PHP/ADODB[/url]
    [url]http://php.weblogs.com/ADODB[/url]

    The basic problem is trying to get something on a nix box to play nice with
    Jet. We never found an elegant way of doing it. (Some brief thought was
    given to writing a VB app to live on the windows box, conveniently leaving a
    port open to listen for requests from our PHP script and return results.
    Humorous, yet ever-so-brief thought. :)

    Good luck.
    -trav
    >-----Original Message-----
    >From: [email]weston@leary.csoft.net[/email] [mailto:weston@leary.csoft.net]
    >Sent: Sunday, August 24, 2003 1:55 PM
    >To: [email]php-general@lists.php.net[/email]
    >Cc: [email]weston@csoft.net[/email]
    >Subject: 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.
    >
    >In short: 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,
    > Weston
    >
    Travis Kroh Guest

  4. #3

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

    Weston C wrote:
    > 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!

    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.

    Michiel Guest

  5. #4

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

    Michiel <michiel@...NO...SPAM!*.2see.nl> wrote in
    news:3f4a7c6a$0$49106$e4fe514c@news.xs4all.nl:
    > 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".
    You can do that?

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

    Pete.
    Peter Jones Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139