![]() |
|
|
+ Search |
![]()
|
Aug 5th, 1999 11:49
Paul DuBois, Nathan Wallace,
You could use a system call:
exec("sort -o db.txt db.txt");
or you can do the whole thing in PHP using:
$db = file("db.txt");
sort($db);
$dbh = fopen("db.txt","w") || die("couldn't open");
fwrite($dbh,implode($db,"\n");
Probably what you really want though is a database, especially if the
files will be large.