stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


ADOdb 2.20 released







ADOdb 2.20 released

ADOdb 2.20 released 07/09/2002 09:09 AM

ADOdb is a PHP library for writing portable database code. It supports many databases, including oracle, mysql, mssql, postgresql, access, informix, sybase, db2, interbase, firebird, frontbase, foxpro, etc.

  • Busy working on making the code more consistent and modular. Added new caching functions: CacheGetOne($secs2cache,$sql), CacheGetRow($secs2cache,$sql), CacheGetAll($secs2cache,$sql).
  • Added a new function useful for scheduling appointments portably. $conn->OffsetDate($dayFraction,$date=false) to generate sql that calcs date offsets.
  • Improved portability when handling joins. Added connection properties: leftOuter, rightOuter that hold left and right outer join operators, and ansiOuter to indicate whether ansi outer joins supported.
  • New driver mssqlpo, the portable mssql driver, which converts the string concat operator from || to +. This allows you to write portable sql using || that is automatically converted to + when you switch databases to mssql.
  • Fixes PageExecute() bug when sql has GROUP BY, and msaccess SelectLimit() bug.

"zeldman.57"




This is a GrokNews Entry: (what is grok?)





Similar Items

ADOdb 2.20 released

Grok Headline matches for ADOdb 2.20 released

ADODB 0.70 Released


ADODB 0.70 Released 06/11/2004 11:17 AM
ADODB is a database wrapper library for PHP4 modelled on Microsoft's ADO. You are all urged to upgrade because of a bug in MoveNext(), which did not handle EOF properly.

--Calls by reference have been removed (call_time_pass_reference=Off) to ensure compatibility with future versions of PHP, except in Oracle 7 driver due to a bug in php_oracle.dll.

--PostgreSQL database driver contributed by Alberto Cerezal (acerezalp@dbnet.es).

--Oci8 driver for Oracle 8 contributed by George Fourlanos (fou@infomap.gr).

--Added mysqlt database driver to support MySQL 3.23 which has transaction support.

--Oracle default date format (DD-MON-YY) did not match ADODB default date format (which is YYYY-MM-DD). Use ALTER SESSION to force the default date.

--Error message checking is now included in test suite.

-- MoveNext() did not check EOF properly -- fixed.


ADOdb 2.10 Released


ADOdb 2.10 Released 06/05/2002 07:50 AM
ADOdb 2.10 has just been released. This is a database abstraction library for PHP that supports many databases, including Oracle, MySQL, PostgreSQL, Informix, Sybase, Microsoft SQL Server, Access, FoxPro, DB2, ODBC etc.

It now provides an easy-to-use pager class. The following code

include_once('../adodb.inc.php');
include_once('../adodb-pager.inc.php');
session_start();

$db = &NewADOConnection('mysql');
$db->Connect('localhost','root','','xphplens');
$sql = "select * from adoxyz ";

$pager = new ADODB_Pager($db,$sql);
$pager->Render($rows_per_page=5);
will produce:
|<   <<   >>   >|  
IDFirst NameLast NameDate Created
36  Alan  Turing  Sat 06, Oct 2001 
37  Serena  Williams  Sat 06, Oct 2001 
38  Yat Sun  Sun  Sat 06, Oct 2001 
39  Wai Hun  See  Sat 06, Oct 2001 
40  Steven  Oey  Sat 06, Oct 2001 
"tri" This is 100% customizable with source code provided. Enjoy! "zeldman.57"

ADOdb and PDO


ADOdb and PDO 06/14/2004 10:38 PM
PDO is a new database API that will be part of the official PHP 5.1 release. AFAIK, PDO will not be a full-fledged database abstraction library, but will provide a standard database API for PHP.

Here is a sample taken from the PDO download:

<?php
   $x = new PDO("odbc:ram", 'php', 'php',
array(PDO_ATTR_AUTOCOMMIT => 0));
   $stmt = $x->prepare("select NAME, VALUE from test where value
like ?");
   $the_name = 'bar%';
   $stmt->execute(array($the_name)) or die("failed to
execute!");
   $stmt->bindColumn('VALUE', $value);
   while ($row = $stmt->fetch()) {
   	echo "name=$row[NAME] value=$row[VALUE]n";
   	echo "value is $valuen";
   	echo "n";
   }
    echo "Let's try an updaten"
   $stmt = $x->prepare("INSERT INTO test (NAME, VALUE) VALUES
(:name, :value)");
    $stmt->bindParam(":name", $the_name, PDO_PARAM_STR,
32);
   $stmt->bindParam(":value", $the_value, PDO_PARAM_STR,
32);
    for ($i = 0; $i < 4; $i++) {
   	$the_name = "foo" . rand();
   	$the_value = "bar" . rand();
	if (!$stmt->execute()) {
   		break;
   	}
   }
    echo "All donen";
?>

Highlights of PDO include the unified object-oriented API, compiled statements are now first class objects (the PDOStatement class), and better support for bind variables, which will give a substantial speed boost for performance freaks.

Does this make ADOdb superflous? If you are looking for something that just works with mysql, then ADOdb might not be for you. However ADOdb still has a big role to play, because:

(1) ADOdb makes it easier to develop PHP apps that work with multiple databases, with portable handling of data types and schemas.

(2) PDO does not provide an infrastructure for enterprise database access, such as recordset caching, sql logging and tuning, and session management.

(3) If you come from a Windows background (like me), it is easy to learn ADOdb because it follows many M'soft conventions.

So the next question is, how to extend ADOdb to support PDO? I think we can retain the existing ADOdb infrastructure, treating PDO as just another ADOdb driver. At the same time, we will add PDO specific extensions to the ADOdb PDO driver.

So the classic ADOdb calling conventions will still work:

	
        include('adodb.inc.php');
	$DB = NewADOConnection('pdo');
	$DB->Connect($host, $user, $pwd, $db);
	$rs = $DB->Execute("select * from table where name=?",array('Jill'));
	while (!$rs->EOF) {
		var_dump($rs->fields);
		$rs->MoveNext();
	}
And we will add a new ADOdb statement class to support PDO conventions:
        include('adodb.inc.php');
	$DB = NewADOConnection('pdo');
	$DB->Connect($pdo_connection_string);
	$stmt = $DB->PrepareStmt("select * from
table where name=?");
	$stmt->Execute(array('Jill'));
	while ($arr = $stmt->Fetch()) {
		var_dump($arr);
	}

Wez has more PDO examples. A PDO discussion at sitepoint.


ADODB 4.52


ADODB 4.52 08/17/2004 09:14 AM
A PHP database abstraction layer.

ADOdb for Python


ADOdb for Python 01/26/2004 10:15 AM
In my work with Python, I found that there's no good database abstraction library, so I wrote my own. Looks familiar, doesn't it?

PHP Python
include "adodb.inc.php";
$conn = NewADOConnection('mysql');
$conn->Connect('server','user','pwd','db');
$rs = $conn->Execute('select * from tab);

while (!$rs->EOF) { print_r($rs->fields); $rs->MoveNext(); } $rs->Close(); $conn->Close();

import adodb_mysql;
conn = adodb_mysql.adodb_mysql()
conn.Connect('server','user','pwd','db')
cursor = conn.Execute('select * from tab)

while not cursor.EOF: print cursor.fields cursor.MoveNext()

cursor.Close() conn.Close()

It also supports the iterator protocol:

  cursor = conn.Execute('select * from table')
  for row in cursor:
       print row

Python does have the DB API, but it's similar to ODBC in that it provides a very minimal layer, without abstracting SELECT ... LIMIT, LOBs, string quoting, etc. Download zip.

I will try to post a comparison between developing in Python and PHP when I have more time.


adodb-xmlschema 0.0.2.4


adodb-xmlschema 0.0.2.4 11/17/2003 08:54 PM
An XML database creation extension for ADODB.

adodb-xmlschema


adodb-xmlschema 02/12/2004 10:14 PM
adodb-xmlschema (axmls) Release 1.0!

Comparing PEAR DB to ADOdb


Comparing PEAR DB to ADOdb 11/17/2002 10:47 PM

PEAR DB is the default database abstraction library for PEAR. ADOdb is a high end database abstraction library modelled on Microsoft's ADO that is also very popular.

1. Feature Comparison
Where we try to put you to sleep by showing you the similarities between PEAR DB and ADOdb 2. Features Missing from PEAR DB
Now we try to wake you up with some teasers 3. Criticisms of ADOdb
Read what other people are moaning and complaining about

"zeldman.57"

PHP App Development With ADODB (part 2)


PHP App Development With ADODB (part 2) 08/05/2002 10:44 PM
In the first part of this article, I introduced you to the ADODB database abstraction library, and showed you a little of how it works. I demonstrated how using it in your PHP application development could substantially reduce the time spent on code rewrites if your RDBMS decided to change shape, and also gave you a crash course in the basic functions built into the library.

Fortunately, that isn't all she wrote. ADODB comes with a whole bunch of bells and whistles, which allow you to do some fairly nifty new things in your PHP scripts. Over the next few pages, I'll be showing you some of them - so flip the page, and let's get started! -- icarus

PS: : ADOdb 2.30 released on August 1st. Features generation of SQL for pivot-tables/cross-tabulations. Thanks to Daniel Lucazeau for the original idea. Also a mssql "select distinct" bug fix when the SelectLimit() function is used.

"zeldman.pinme"

Pseudo PostreSQL ADODB


Pseudo PostreSQL ADODB 11/08/2002 07:17 PM
Pseudo PostgreSQL ADODB is a PHP class designed as a drop-in replacement for ADOdb for PHP applications that do not need the full power of ADOdb, want to remain light and fast but want to remain compatible with ADOdb. The API of PostgreSQL ADODB Emulation was designed to be compatible with ADOdb. I was able to remove ADOdb from my application framework and use this class instead.

Pear Versus ADOdb


Pear Versus ADOdb 11/25/2002 09:58 AM
Comparing Pear and ADOdb is one of those PHP things that we're all curious about. I haven't used it but I'd also look at Metabase (sorry for no link) since someone I respect technically really likes it. [ Go ]

ADOdb: Making MySQL Efficient


ADOdb: Making MySQL Efficient 10/29/2003 12:11 AM
Learn how to use Active Data Objects Data Base (ADOdb) to make your websites utilize MySQL more efficiently.

PHP Application Development With ADODB
(part 2)


PHP Application Development With ADODB
(part 2)
08/13/2002 01:06 PM
In this concluding article, find out about ADODB's advanced functions, with examples that demonstrate how ADODB can be used to optimize multiple-run queries, commit and roll back transactions, improve performance by caching query results, and automatically write HTML (or text) files.

Simple persistence engine for PHP and
ADODB 0.1


Simple persistence engine for PHP and
ADODB 0.1
07/12/2004 12:43 PM
A simple object-relational mapper and persistence engine for PHP.

PHP Application Development With ADODB
(part 1)


PHP Application Development With ADODB
(part 1)
08/07/2002 12:28 PM
PHP comes with a different API for different database types - whcih usually means a code rewrite every time your database administrator decides to experiment with something new. But fear not - help is at hand, in the unlikely form of ADODB, a powerful database abstraction library for PHP applications.

Portability is a Good Thing (ADODB)


Portability is a Good Thing (ADODB) 07/25/2002 07:36 AM

Community News: ADODB Page Moved


Community News: ADODB Page Moved 06/16/2004 08:26 AM
In just a quick note from MarkL regarding an email that John Lim (of PHPEverywhere) has sent to the php-general mailing list: Due to system outages at the current site, the home page of ADOdb has moved to sourceforge. Kindly update your links to http://adodb.sourceforge.net

Manually Disabling the ADODB.Stream
object


Manually Disabling the ADODB.Stream
object
07/10/2004 05:10 PM

Any Port In A Storm: ADOdb Tutorial on
DevShed


Any Port In A Storm: ADOdb Tutorial on
DevShed
08/05/2002 10:44 PM
As a developer, one of the most important things to consider when developing a Web application is portability. Given the rapid pace of change in the Web world, it doesn't do to bind your code too tightly to a specific operating system, RDBMS or programming language; if you do, you'll find yourself reinventing the wheel every time things change on you (and they will - take my word for it). -- icarus

"zeldman.57"

Re: [Full-Disclosure] Fix for IE
ADODB.Stream vulnerability is out


Re: [Full-Disclosure] Fix for IE
ADODB.Stream vulnerability is out
07/03/2004 11:49 AM
http-equiv_at_excite.com (Jul 02 2004)

Microsoft Releases IE tweak to disable
ADODB.Stream


Microsoft Releases IE tweak to disable
ADODB.Stream
07/02/2004 07:44 PM
IIS Resources Jul 2 2004 11:10PM GMT

PHP Everywhere: Home. News and feature
articles on PHP and ADOdb database
library.


PHP Everywhere: Home. News and feature
articles on PHP and ADOdb database
library.
12/21/2002 02:04 AM
PHP Everywhere: Home. News and feature articles on PHP and ADOdb database library.. Some great thoughts in this blog about PHP and scripting in general. Good reading.

Vulns: Microsoft Internet Explorer
ADODB.Stream Object File Installation
Weakness


Vulns: Microsoft Internet Explorer
ADODB.Stream Object File Installation
Weakness
06/13/2004 08:11 PM
SecurityFocus Jun 13 2004 11:14PM GMT

Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer


Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer
07/04/2004 12:11 PM

Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer (KB870669)


Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer (KB870669)
07/02/2004 11:25 AM
Adodb.stream provides a method for reading and writing files on a hard drive. This by-design functionality is sometimes used by web applications. However, when combined with known security vulnerabilities in Microsoft Internet Explorer, it could allow an internet web site to execute script from the Local Machine Zone (LMZ). This occurs because the ADODB.Stream object allows access to the hard drive when hosted within Internet Explorer.

Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer - Win9x
(KB870669)


Critical Update for Microsoft Data
Access Components - Disable ADODB.Stream
object from Internet Explorer - Win9x
(KB870669)
07/03/2004 01:45 PM
Adodb.stream provides a method for reading and writing files on a hard drive. This by-design functionality is sometimes used by web applications. However, when combined with known security vulnerabilities in Microsoft Internet Explorer, it could allow an internet web site to execute script from the Local Machine Zone (LMZ). This occurs because the ADODB.Stream object allows access to the hard drive when hosted within Internet Explorer.

Download details: Critical Update for
Microsoft Data Access Components -
Disable ADODB.Stream object from
Internet Explorer (KB870669)


Download details: Critical Update for
Microsoft Data Access Components -
Disable ADODB.Stream object from
Internet Explorer (KB870669)
07/07/2004 04:43 AM
workaround fix for that latest security threat .. Microsoft Download Center .. Windows NT/2000/XP/2003 .. Update

microsoft.com/downloads/details.aspx?FamilyId=4D056748-C538-4 6F6-B7C8-2FBFD0D237E3&displaylang=en
track this site | 4 links


Firefox 0.8 released, Thunderbird 0.5
released


Firefox 0.8 released, Thunderbird 0.5
released
02/10/2004 02:54 AM

PHP 5.0.0 Released


PHP 5.0.0 Released 07/13/2004 08:23 PM

Mac OS X 10.3.5 released


Mac OS X 10.3.5 released 08/09/2004 04:37 PM
Apple today released Mac OS X 10.3.5 via the Software Update preference pane...

svk 1.00 Released


svk 1.00 Released 06/05/2005 11:38 PM
clkao writes "The svk team is pround to introduce svk 1.00, a distributed version control system that powers Autrijus' productivity. While you might not be as crazy as Autrijus, you can at least use the same tool. Learn more at http://svk.elixus.org/"

PHP.net: PHP 4.3.6 Released!


PHP.net: PHP 4.3.6 Released! 04/16/2004 07:41 AM
Late yesterday, the PHP group released another final release for te latest version - PHP 4.3.6!

PHP 4.3.8 Released!


PHP 4.3.8 Released! 07/13/2004 06:54 PM
A new Security update for the PHP 4.3 Series.

PHP 4.3.6 Released!


PHP 4.3.6 Released! 04/15/2004 04:56 PM
PHP 4.3.6 is released. Fixes bugs found in previous versions and ehnahces cURL and GD.

Mac OS X 10.3.4 Released


Mac OS X 10.3.4 Released 05/26/2004 03:25 PM
Now available via OS X Software Update: 10.3.4 Update delivers enhanced functionality and improved reliability for Mac OS X v10.3 "Panther" and is ...

PHP.net: PHP 4.3.7 RC1 Released!


PHP.net: PHP 4.3.7 RC1 Released! 05/26/2004 07:31 AM
From the main PHP site today:

OS X 10.2.4 Released


OS X 10.2.4 Released 03/13/2003 10:16 AM
Apple has released OS X 10.2.4, and it is now available via the Software Update Preference Panel. The 41MB download features: "enhanced functionality and improved reliability for the following applications, services and technologies: Address Book, Classic compatibility, Finder, FireWire, Graphics, OpenGL, and Sherlock. It includes AFP and Windows file service improvements, as well as audio, disc recording, graphics, and printing improvements."

MT 3.15 released


MT 3.15 released 02/01/2005 09:14 PM
If you can read this, it means that I've successfully upgraded to Movable Type 3.15. If you're on MT, you should too. And if you're running into any trouble with this site that might be upgrade related, let me know...

PHP 4.3.11 & 5.0.4 released


PHP 4.3.11 & 5.0.4 released 04/04/2005 06:08 AM

Grok Description matches for ADOdb 2.20 released
GrokA matches for ADOdb 2.20 released

ADOdb 2.20 released

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Web Services
Description Language
(WSDL) 1.2 Working
Drafts Published

Flash: Macromedia
tools speak up

Flash! Macromedia
tools speak up

SAPRFC 1.1 released
New Architect: Zend
Studio 2.0 -
Development tools
for PHP grow up

Macromedia gets
talking

Website Login Tool
0.1 released

A Developers' Guide
to
Return-On-Investment
(ROI)

xplain2sql 1.3.0
released

BlackHole Spam/Virus
Filter 0.9.107
(Stable) released

Macromedia gets
chatty

TouchGraph Google
Browser

Pros and cons of
using C++ templates

ColdFusion MX
simplifies Web
service calls and
XML handling

Six MySQL/PHP
functions to
streamline
development

Extending the C++
STL with custom
containers

Learn to secure your
ASP.NET applications

How a team can
survive a staff
cutback

Basic and complex
SQL joins made easy

Session Beans: The
EJB star performer

Welcome to Corporate
Politics 101

Essentially Jython
misses mark

Time management for
tech pros

Wireless Application
Protocol

Faking SOAP
principles

The jerk at the top
UDDI Working Group
Publishes UDDI
Version 3.0
Specification

DocBook XSL
Stylesheets 1.52.0
released

phpPgAdmin 2.4.2
Released

AFPL Ghostscript
7.21 developer
release

CryptoMail .99
Released

Gnutella Developer
Gene Kan Dies

Media Queries
Becomes a W3C
Candidate
Recommendation

Can EDI Survive XML
Challenge?

PHP IMSP Client
Classes 1.0b-rev3
released

Amaya 6.2 Released
Waiting, Waiting and
Waiting for IPv6

The Labyrinthine
Nature of Web
Services

Riptech Releases
Elite Hacker Profile

unixODBC 2.2.2
released

RelaxMeter tests for
ambiguity

Shocker: E-Bay to
Buy Pay Pal

Eikonex Cluster
Monitoring Tool
1.0.1 released

Information
Architecture:
Defining The Damn
Thing

Device Independence
Activity Renewed

PEAR Weekly News
The Programming
Soviet

Easily retrieve
drive and system
information in VB

Should your shop
deploy XML for Web
services?

Accessing flat files
with Oracle SQL

what is grok?