+ 1
Is there a better way to store html code, other than storing it as a string in database ?
I am creating a content management system and want to make an html editor through which I can make a post and edit it's source code, now the problem here is that all of the other data is not that large but the source code is large and passing the whole source code as a string doesn't seem to be a relevant technique, is there any file storing technique that I can use ?
3 ответов
+ 7
Well you could store them as html files. Writing and reading files with php
+ 2
yeah I can do that so what you're suggesting is I create an Html file for every new post also I need to add a link to the directory where that file resides in, and store that link to database, now all I need to do is figure out a way to save the file using php and grab its link !
+ 2
I figured it out using php filing and inserting link to database !