P
P
partyzanx2018-05-03 12:27:00
PHP
partyzanx, 2018-05-03 12:27:00

How to connect an html file in a database instead of injecting text?

I have articles of 100 thousand characters, I would like to include the html text as the main text of each article, and not by putting the text of the article in the text column in mysql. What is the best way to do this?
5aead53f71e1f922954161.png
In the text column, write a command like ? <? require "/ссылка_на_html" ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-05-03
@partyzanx

No, of course, why store php-code in the database? Store only the path to the file there, if you want to do this through files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question