Monkuar Posted November 7, 2011 Share Posted November 7, 2011 On my main page of my forum, it shows the total amount of Posts and Topics on board, and it selects these from a query IBF_STATS,. and I was just wondering, do you think it would be more improvement wize to edit each time somone post's you use fwrite, and make it add +1 into the .txt on the server, then just extract the .txt contents to show on the main page, so you do not have to use a mysql query, do you think it would beneficial or no? Is reading from a .txt a strain on a server or alot easier then comparing 1 simple (kinda long) mysql query? Quote Link to comment https://forums.phpfreaks.com/topic/250591-question-about-fwrite-vs-mysql/ Share on other sites More sharing options...
haku Posted November 7, 2011 Share Posted November 7, 2011 A database query will always be faster than reading to and writing from a file. Quote Link to comment https://forums.phpfreaks.com/topic/250591-question-about-fwrite-vs-mysql/#findComment-1285765 Share on other sites More sharing options...
Monkuar Posted November 7, 2011 Author Share Posted November 7, 2011 A database query will always be faster than reading to and writing from a file. Thanks, topic resolved. Quote Link to comment https://forums.phpfreaks.com/topic/250591-question-about-fwrite-vs-mysql/#findComment-1285996 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.