"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/tests/testcache.php Source File", "datetime" => "Sat Dec 2 19:22:27 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <html> 00002 <body> 00003 <?php 00004 /* 00005 V4.80 8 Mar 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. 00006 Released under both BSD license and Lesser GPL library license. 00007 Whenever there is any discrepancy between the two licenses, 00008 the BSD license will take precedence. 00009 Set tabs to 4 for best viewing. 00010 00011 Latest version is available at http://adodb.sourceforge.net 00012 */ 00013 00014 $ADODB_CACHE_DIR = dirname(tempnam('/tmp','')); 00015 include("../adodb.inc.php"); 00016 00017 if (isset($access)) { 00018 $db=ADONewConnection('access'); 00019 $db->PConnect('nwind'); 00020 } else { 00021 $db = ADONewConnection('mysql'); 00022 $db->PConnect('mangrove','root','','xphplens'); 00023 } 00024 if (isset($cache)) $rs = $db->CacheExecute(120,'select * from products'); 00025 else $rs = $db->Execute('select * from products'); 00026 00027 $arr = $rs->GetArray(); 00028 print sizeof($arr); 00029 ?>