https://github.com/zoonman/filestorage
The simple implementation key-value storage in file system written on PHP
https://github.com/zoonman/filestorage
filestorage key-value php
Last synced: about 1 year ago
JSON representation
The simple implementation key-value storage in file system written on PHP
- Host: GitHub
- URL: https://github.com/zoonman/filestorage
- Owner: zoonman
- Created: 2013-01-01T14:39:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-01T15:40:03.000Z (over 13 years ago)
- Last Synced: 2024-04-15T09:17:04.856Z (about 2 years ago)
- Topics: filestorage, key-value, php
- Homepage: http://www.zoonman.com/projects/filestorage/
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP Class FileStorage
=====================
This class developed as simple implementation key-value storage in file system.
It presents simple example of NoSQL database realised on PHP.
Store value into file fb.txt:
$f = new FileStorage(dirname(__FILE__).'/fb.txt');
$f->set($var_name,$var_value);
Read this value later:
$f = new FileStorage(dirname(__FILE__).'/fb.txt');
$value = $f->get($var_name);
I use `dirname(__FILE__).'/fb.txt'` for storing file near with class. It is a bad code, because you should save your data in private directory.
The home page of project is [here](http://www.zoonman.com/projects/filestorage/)