Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2003-10-28 (13 years ago) | 64% | Total: 4,700 | All time: 563 This week: 880 |
Version | License | Categories | ||||
csvfiledb 1.0 | GNU General Publi... | Databases, Files and Folders |
Description | Author | |||||||||||||
This class provides simple access to CSV files with the possibility to navigate through the record sets and also to manipulate them. |
|
file_db_class.php 1) What it does This class provides simple access to csv files and let you easy navigate through the tabel. 2) How it works You should only access one of the following functions and variables: 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 Functions: 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 !!Important!! Please be sure, that you have the rights to read and modify the file. |
Files |
File | Role | Description |
---|---|---|
example.csv | Data | Example CSV file |
example.php | Example | Example PHP script |
file_db.class.php | Class | FileDB class File |
readme.txt | Doc. | Readme and Documentation file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.