1

I was wondering if it is possible to use SQLite in PHP when the extension is not available (due to web hosting policy). Is there a pure PHP library for that? Otherwise, is there PHP alternative for flat file database which I can adopt without going to MySql or MSSQL?

1
  • Web hosting without SQLite support is garbage. I think you should change provider instead of wasting time on something like this. There are many companies who offer basic web hosting with cost like 2-3 EUR per month... Commented Feb 24, 2014 at 10:48

2 Answers 2

1

Try following the link pointed out by Andrei B: I published a link to my implementation of a database, entirely written in PHP, which aims at full support of SQL syntax. It's an open source project, every suggestion and contribution is welcome!

https://github.com/morepaolo/PHPFileDB

Sign up to request clarification or add additional context in comments.

Comments

1

Check out https://github.com/mhgolkar/FlatFire or maybe stick with XML files (and related XML and XPath functions).

3 Comments

Both interesting solutions (I cannot upvote as I've just registered..) Anything which supports SQL syntax just like SQLite?
You might still accept the answer if it helps you. I can't think of other SQL-based equivalents. Depending on what access/software you have on the server, you could try this stackoverflow.com/a/10264788/2527118
Thanks, I'll leave the question open for a while, allowing other users to suggest possible answers. Thanks again for your help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.