Store data without a database?

If I want to store emails but you don’t have a database (like MySQL), what should I do?

Data should be accessible and writable with PHP, but regular "visitors" MUST NOT see the data.

Hope you can help.

+3
source share
5 answers

If your data is not very large, you can use XML files. But if your data is important and you need to protect it, you need to encrypt your data.

+4
source

You can put them in files :)

$data; // Defined "somewhere"
file_put_contents('filename.txt', $data);

However, I suggest you use the database anyway. At least SQLite is installed almost everyone.

+8
source

php ($ to, $subject, $body), . script, .

0

, , .php, ().

, */$mail */ , .

0

, Outlook: . ( ). , , .

0

All Articles