If I would like to store emails, but don't have a database (e.g. MySQL), what should I do?
The data should be accessible and writable from PHP, but regular "visitors" MUST NOT see the data.
Hope you can help.
You can put them in files :)
$data; // Defined "somewhere"
file_put_contents('filename.txt', $data);
However, I suggest you to use a database anyway. At least SQLite is installed nearly everywere.
If your data not very large, you can use XML files. But if your data is important and you must secure it , you have to encrypt your data
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With