UPDATE: FILE.CLASS.PHP 2.0
Because of $file::load() useless I rewrote the class, where I added some new things.
Simple eg:
TODO:
MYSQL LIKE FLAT FILE DATABASE system
CLONE FILE
MOVE POINTER IN FILE
Known Bugs: 0. Report it.
For more info read the comments from file.class.php or Tutorial.jpg
Thx;
Because of $file::load() useless I rewrote the class, where I added some new things.
Simple eg:
PHP Code:
<?php
require('file.class.php');
$f = new file;
$filename = 'Folder/Folder2/Folder2/file.txt';
$f->validate($filename);
$f->write_file('HI', $filename, LINE_BY_LINE, ERASE); // LINE_BY_LINE | SINGLE_LINE AND ERASE | DONT_ERASE
$array = $f->read_file($filename, ARRAY_READ); // OR FULL_READ
foreach ($array AS $a)
{
echo $a.'<br/>';
}
$f->dir_tree('Folder/'); // will return an array with all files from that dir and its subdirs
$f->delete_dir('Folder/'); // all files and subfolders from Folder will be deleted
?>
MYSQL LIKE FLAT FILE DATABASE system
CLONE FILE
MOVE POINTER IN FILE
Known Bugs: 0. Report it.
For more info read the comments from file.class.php or Tutorial.jpg
Thx;
Comment