<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: index.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web:
http://www.4homepages.de *
* Scriptversion: 1.7 *
* *
* Never released without support from: Nicky (
http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (Lizenz.txt) für weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (Licence.txt) for further information. *
* *
*************************************************************************/
include("./pnadodb/adodb.inc.php");
$ADODB_CACHE_DIR = 'd:\\temp';
$db = NewADOConnection('mysql');
$db->Connect("xxx.xxx.xxx.xxx", "Any", "error", "4images");
if (isset($cache)) $rs = $db->CacheExecute(14400,'select * from 4images_images');
else $rs = $db->CacheExecute('select * from 4images_images');
if (isset($cache)) $rs = $db->CacheExecute(72000,'select * from 4images_categories');
else $rs = $db->CacheExecute('select * from 4images_categories');
if (isset($cache)) $rs = $db->CacheExecute(3600,'select * from 4images_sessions');
else $rs = $db->CacheExecute('select * from 4images_sessions');
if (isset($cache)) $rs = $db->CacheExecute(7200,'select * from 4images_comments');
else $rs = $db->CacheExecute('select * from 4images_comments');
if (isset($cache)) $rs = $db->CacheExecute(14400,'select * from 4images_sessionvars');
else $rs = $db->CacheExecute('select * from 4images_sessionvars');
if (isset($cache)) $rs = $db->CacheExecute(14400,'select * from 4images_users');
else $rs = $db->CacheExecute('select * from 4images_users');
while (!$rs->EOF) {
$rs->MoveNext();
}
This is my insert in index.php of 4images.
All cached are saved in \\temp dir ( windows machine ) /tmp dir ( *nix )
Mike