CSV file db 1.0

CSV file db provides simple access to csv files and let you easy navigate through the tabel. You should only access one of the following functions and variables.

$index // Index in File, DO NOT CHANGE
$limiter // The CVS Limiter, usually ";"
$filename // The filename of the cvs file
$record = array() // The actual record
$EOF // True if End of File
$BOF // True if Beginning of File

 function open_db()
- opens file
- puts first recordset into record
- returns 1 if ok, 0 if not

function move_next()
- loads the next recordset

function move_pref()
- loads the previous recordset

function move_first()
- moves the recordpointer to first recordset and loads it

function move_last()
- same as above, only last

function close()
- closes the filehandler

function update()
- updates the actual recordset

function add_new()
- adds a new recordset
- after add_new the record can be manipulated
- in the end just execute update() and the recordset is stored

function delete()
- deletes current recordset and moves the recordpointer one ahead

Please be sure, that you have the rights to read and modify the file.

License type: GPL - GNU General Public License
Date added: 10 years, 6 months 7 days ago | Last updated: 10 years, 6 months 7 days ago

More popular File & Folder

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • example.csv
  • 86 Bytes
  • 10/04/2005 02:35:04
Hot Scripts