How to convert mysql to sqlite3 using PHP
I have a database on mysql server. I want to convert that to sqlite开发者_如何转开发3 database without using shell or perl scripts. I want some help converting the same using PHP. Any Help would be appreciated.
Using PHP only would be rather troublesome, you'd have to get all the records from your mysql table, create the appropriate tables in sqlite3 and insert the records.
As far as I can tell you just want to to it automatically, so I would'nt see the harm in using shell programs. You could quite easily do this using the exec
function: http://nl3.php.net/manual/en/function.exec.php
精彩评论