Tufanayd Posted October 18, 2012 Share Posted October 18, 2012 I have 305 html files and i want to save them into a mysql database. The values which I want to save are: Filename title Meta description Meta keywords H1 in a div container Html part in a div container Is it something which i can do using PHP and jQuery ? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/269637-converting-and-saving-multiple-html-files-to-databasr/ Share on other sites More sharing options...
DavidAM Posted October 18, 2012 Share Posted October 18, 2012 Yes, (although I don't see a need for JQuery). Quote Link to comment https://forums.phpfreaks.com/topic/269637-converting-and-saving-multiple-html-files-to-databasr/#findComment-1386095 Share on other sites More sharing options...
Tufanayd Posted October 18, 2012 Author Share Posted October 18, 2012 Ok, then how can I do it? Quote Link to comment https://forums.phpfreaks.com/topic/269637-converting-and-saving-multiple-html-files-to-databasr/#findComment-1386148 Share on other sites More sharing options...
Christian F. Posted October 18, 2012 Share Posted October 18, 2012 What you need is a CMS system, from the sounds of things. You do not want to store the HTML pages wholesale in the database, but only their actual (diverging) content. Some of them might not even need to be stored in the database, but can probably be served as semi-permanent template files. So, in short: You need to learn about CMS systems, and using a pre-existing one is WAY easier (and infinitely more secure) than writing your own. Quote Link to comment https://forums.phpfreaks.com/topic/269637-converting-and-saving-multiple-html-files-to-databasr/#findComment-1386150 Share on other sites More sharing options...
Tufanayd Posted October 18, 2012 Author Share Posted October 18, 2012 Hi Christian I have the CMS system, I just want to convert the old static content into CMS system, I am trying to find a way otherwise I have to do it one by one (which I don't want to prefer) Quote Link to comment https://forums.phpfreaks.com/topic/269637-converting-and-saving-multiple-html-files-to-databasr/#findComment-1386154 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.