Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Joandi  >  zregistry  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: zregistry
Register name and value pairs in a SQLite database
Author: By
Last change:
Date: 4 years ago
Size: 272 bytes
 

Contents

Class file image Download
<?php 
include ('registry.php');

$reg = new registry('test.db');
$reg->setValue('site_title''mysite');
$reg->setValue('site_slogan''myslogan');

echo 
$reg->getValue('site_title');
echo 
'<br />'.$reg->getValue('site_slogan');
$reg->dropKey('site_slogan');
?>