Sample PHP script to copy sqlite database structure and data to mysql

Hi,

I am planning to deploy a web app to include a database template in sqlite format which will eventually be created in mysql during first access of the app/system.
Anyone who has a sample script? or at least have tried this?

Thanks