Answer the question
In order to leave comments, you need to log in
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?
In the text column, write a command like ? require "/ссылка_на_html"
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question