PHP simple text database with SQL syntax [closed]
Apparently stalled or abandoned but quite what you are looking for:
PHP Text File Database API - PHP Text DB: access Text Files with SQL
PHP Flatfile package - provides equivalents to many common SQL commands