You are here: Re: which way is the best? « PHP Programming Language « IT news, forums, messages
Re: which way is the best?

Posted by Colin McKinnon on 09/27/05 12:17

Chris wrote:

> Hi,
>
> I want to connect PHP pages to Access database. I saw there are at least
> to ways:
>
s/to/two

> $conn = new COM('ADODB.Connection');
> $conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data
> Source=d:\access\newres.mdb");
>
> or
>
> include('../adodb/adodb.inc.php');
> $dsn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
> Source=d:\access\newres.mdb;';
> $db = NewADOConnection('ado_access');
> $db->PConnect($dsn);
>
> What should i take? Are there significant differences?
>

Both are rather slow. COM is tied to a MS-Windows architecture and therefore
limits portability. AdoDB will work with all sorts of DBMS. Personally I'd
go for ODBC ('cos I'm a speed freak - so I never use MS-Access anyway).

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация