• Is it possible to connect to a remote SQLite database file? I would use define('DB_FILE', 'https://example.com/your_database_name.sqlite'), but I’m afraid this won’t work. Any solution?

Viewing 1 replies (of 1 total)
  • I don’t understand. Why would you like to link to a remote database file? Don’t try it.

    Anyhow, SQLite Integration uses PHP file system functions internally like opendir(), chdir(), unlink(), etc. Although those functions begin to support URL wrappers with FTP support for example, I’m sure the plugin was not intended to use that feature.

    You could try two things:

    1) change your code to use ftp://user:[email protected]/db.sqlite

    or

    2) if you’re on a linux server mount the remote folder with the database file via NFS, SSHFS or such.

Viewing 1 replies (of 1 total)
  • The topic ‘Connect to remote sqlite file?’ is closed to new replies.