Function file_session
https://github.com/bendahrooge/PHP-Simple-Database
A simple flat-file key/value storage class for PHP. Great for small databases or servers where SQL can't be used. Only 150 lines of code :) This is not a replacement for SQL or other databases
,and it should only be used in smaller applications where a conventional database isn't possbile. It is very inefficient and slow for PHP to keep pulling and overwriting an entire JSON file.
//Writes Data into file
$fruit->set('fruits'
, array('apples', 'bananas','clementines')); //returns TRUE or Error
//Tells if a key is stored in the file $fruit->search('fruits'); //returns TRUE
$fruit->search('prices'); //returns FALSE
//Returns the value of a key $fruit->get('fruits'); //returns that.object
//Deletes a value in file $fruit->del('fruits'); //returns TRUE
Located at config/file.php
null |
$fileName = null |
FileSession1
|
FileSession1 |