S
S
Sergey2018-06-02 18:38:02
Web development
Sergey, 2018-06-02 18:38:02

Which is better local files or database?

Hello! I have a question.
I write websites and recently found out that html templates can be base64 encoded and stored in a MySQL database
Is it better to store files this way or files?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2018-06-02
@t3g1ng

and recently found out that html templates can be encoded in base64 and stored in a MySQL database
now forget.
No one in their right mind
- encodes html in base64
- almost no one stores templates in a database
Templates should be stored in files, because that way they can be put into git and tracked when they change

A
Anatoly Medvedev, 2018-06-02
@balamyt92

I write websites and recently found out that html templates can be encoded in base64 and stored in a MySQL database

Why do that? I mean, why base64? Yes, and storing templates in the database ... why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question