PHP Classes

Secure database

Recommend this page to a friend!

      PHP Web Push Notifications Server  >  PHP Web Push Notifications Server package blog  >  How to Use a PHP Push...  >  All threads  >  Secure database  >  (Un) Subscribe thread alerts  
Subject:Secure database
Summary:Secure SQlite database
Messages:2
Author:Ivan Iudice
Date:2023-04-21 13:05:10
 

  1. Secure database   Reply   Report abuse  
Picture of Ivan Iudice Ivan Iudice - 2023-04-21 13:05:10
Starting from your code example, how can I modify your scripts in order to store the db file name.sqlite into a specific directory?
Thanks for help.

Ivan

  2. Re: Secure database   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2023-04-21 18:47:11 - In reply to message 1 from Ivan Iudice
Hi Ivan,

the directory and name of the SQLLite database can be specified with the first two parameters in the construktor of the Dataprovider. So just change each call of

new PNDataProviderSQLite(null, null, null, createLogger());

to

new PNDataProviderSQLite('<directory>', <filename>, null, createLogger());


Stefan