worldcomingtoanend Posted February 17, 2010 Share Posted February 17, 2010 I am working on an intranet and my clients insist on the use of a database to add documents.. Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/ Share on other sites More sharing options...
premiso Posted February 17, 2010 Share Posted February 17, 2010 Yep, I dynamically generate all my pages using PHP and MySQL en-coupled with a bit of mod_rewrite to get them to appear to be real .html pages. This is done quite frequently, allows for dynamic content to appear to be "static" pages and it makes it way easier to manage. For examples, you can look at Wordpress, as they use the same techniques. Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/#findComment-1013750 Share on other sites More sharing options...
gwolgamott Posted February 17, 2010 Share Posted February 17, 2010 yes yes and yes... I'm doing the same thing at the moment and wish I could have used MYSQL. In fact I nearly begged for that, but they for some reason were afraid of MYSQL (WTF right?!?!). Anyways the one I did was dynamic that make everything look like a static page except through directory functions and a directory structure. So instead of updating via a database someone with access to the web-server drops and drags into the folder system on a windows server. :'( Although this was fun to do it the other way would have been easier, efficient, & saner with MYSQL to add the pages. Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/#findComment-1013774 Share on other sites More sharing options...
worldcomingtoanend Posted February 17, 2010 Author Share Posted February 17, 2010 thank you so much people for your replies...since I have never done it can anyone refer me to some links...thank you so much... Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/#findComment-1013833 Share on other sites More sharing options...
gwolgamott Posted February 17, 2010 Share Posted February 17, 2010 If you are fairly familiar with php and MYSQL... in fact don't need to be that familiar with MYSQL but helps... then it's fairly simple. Just takes time and patients. Setup a dynamic web page: http://woork.blogspot.com/2007/10/load-page-using-url-variables-and-php.html <- the comments on this tutorial are better then the tutorial so read them for ideas for that. Setup you database... just google that if you don't know how. Then instead of passing modules as includes or requires (with regards to that links particular setup and desing) you do as primso said earlier. Includes or require files are just php programs. So instead of container filler for that dynamic page the script would call the database and draw the filler from that passing it along for display to make it look like a static page. That should get you started at least. Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/#findComment-1013865 Share on other sites More sharing options...
worldcomingtoanend Posted February 17, 2010 Author Share Posted February 17, 2010 thank you all for your help...will start working on it...wish u all the best Quote Link to comment https://forums.phpfreaks.com/topic/192391-is-it-recommended-to-use-php-mysql-database-to-add-html-pages/#findComment-1013900 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.